CallFunction(string funcname)
Displaying 1-3 of 3 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
Zip

How does this actually work? I should be able to pass it a string to call my own functions right? Don't seem to be able to get it to work:

CallFunction("Initial()");
CallFunction("Initial");
CallFunction("Initial();"); // None work
for
void Initial()

CallFunction("PlayerRender(0)"); // Nothing either
for
void PlayerRender(int play_num)

CallFunction("dgdgghdfhx"); // No error?!?

Can someone point me in the right direction, i think this could be useful for my problem in the other thread.

Zip

Posted on 2004-04-16 03:43:39

RageCage

CallFunction("Initial"); should work

Posted on 2004-04-16 04:22:04

mcgrue

CallFunction("Initial");

Should call

void Initial() {
//...
}

If you CallFunction something that doesn't exist, nothing happens. This is on purpose.

I do not believe you can use CallFunction with parameter passing, but with clever use of globals, this isn't neccesary.

Posted on 2004-04-16 04:22:37


Displaying 1-3 of 3 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.