Gamestudio Links
Zorro Links
Newest Posts
Help with code
by danatrader. 07/02/20 04:22
Grid Trading - dynamic
by danatrader. 07/01/20 17:15
Fuzzy Range
by AndrewAMD. 07/01/20 16:57
A9
by Emre. 07/01/20 16:06
Locating unfreed memory
by Ayumi. 07/01/20 14:21
new macro: break_assets
by AndrewAMD. 07/01/20 01:01
Engine window and DPI scaling
by Emre. 06/30/20 11:27
Additional Train parameter
by danatrader. 06/29/20 19: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
4 registered members (danatrader, kvm, 20BN, 1 invisible), 429 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Roger399, vrindger, XRaf, pchen90, Agricola
18471 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: 138
RP China
2
20BN Online OP
Member
20BN  Online OP
Member
2

Joined: Feb 2003
Posts: 138
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: 940
Budapest
Aku_Aku Offline
User
Aku_Aku  Offline
User

Joined: Sep 2009
Posts: 940
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,848
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,848
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: 138
RP China
2
20BN Online OP
Member
20BN  Online OP
Member
2

Joined: Feb 2003
Posts: 138
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