CallLocalFunction vs Normal calling
#1

I found CallLocalFunction in the wiki and wondered, whats the point of it?
Why would someone use it, and not just normally type the function?

Код:
public Foo(playerid)
{
    //lots of code
    return cupcake;
}

cupcake = CallLocalFunction("Foo", "i", playerid); //Difference between this
cupcake = Foo(playerid); //and this
Reply
#2

Oh so that's how ZCMD works. Basically you can format the string to say COMMAND:%s.
Awesome, thanks a lot!
Reply
#3

Also useful for callbacks which may or may not be used as it will not return a error/warning if the function is not present.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)