Gamestudio Links
Zorro Links
Newest Posts
I see why this engine died.
by Preypacer. 09/18/20 01:09
lock profit without trail
by danatrader. 09/17/20 21:05
Trail without setting Stop at entry
by AndrewAMD. 09/17/20 14:28
Sky and Water not working correctly?
by Preypacer. 09/17/20 11:39
Returning to A8/3DGS
by Preypacer. 09/17/20 00:46
Problem with history from MT4
by Grat. 09/16/20 18:37
retrain - data?
by Grat. 09/16/20 06:28
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
9 registered members (jenGs, Grat, 3run, 3dvg, TianYu, NewBorn, kvm, phs, 1 invisible), 473 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
NewBorn, 3dvg, secretagentman, distribution, EditeY
18515 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Call a void function from a string / char #476969
04/29/19 10:31
04/29/19 10:31
Joined: Feb 2003
Posts: 139
RP China
2
20BN Offline OP
Member
20BN  Offline OP
Member
2

Joined: Feb 2003
Posts: 139
RP China
Hi, all.

How to call void function from a string / char?

ex:

void test1()
{
error("OK");
}


void main()
{
...
USE_input_HowToScriptting("test1") // call test1()
...

}

like "Dynamic script".

Re: Call a void function from a string / char [Re: 20BN] #476970
04/29/19 10:43
04/29/19 10:43
Joined: Sep 2009
Posts: 955
Budapest
Aku_Aku Offline
User
Aku_Aku  Offline
User

Joined: Sep 2009
Posts: 955
Budapest
What do you want to achieve?

Per tangentem, your code in this format is ugly and unreadable.

Re: Call a void function from a string / char [Re: Aku_Aku] #476973
04/29/19 11:51
04/29/19 11:51
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Call a void function from a string / char [Re: Superku] #476981
04/30/19 09:58
04/30/19 09:58
Joined: Feb 2003
Posts: 139
RP China
2
20BN Offline OP
Member
20BN  Offline OP
Member
2

Joined: Feb 2003
Posts: 139
RP China
@Superku

Thanks!


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1