[QUESTION]CallLocalFunction Usage - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [QUESTION]CallLocalFunction Usage (
/showthread.php?tid=365562)
[QUESTION]CallLocalFunction Usage -
Roko_foko - 03.08.2012
What is the difference between normally calling a function or by CallLocalFunction?
Example:
pawn Код:
public OnPlayerConnect(playerid)
{
if(IsPlayerNPC(playerid))
{
OnPlayerCommandText(playerid,"/SkipRegistration");
//CallLocalFunction("OnPlayerCommandText","ds",playerid,"/SkipRegistration");
}
return 1;
}
Re: [QUESTION]CallLocalFunction Usage -
Misiur - 03.08.2012
The CLF is almost 3 times slower (when running 1.000.000 times so, well, it's irrevelant)
It's used mainly for variable function names