Calling a function by ID - 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: Calling a function by ID (
/showthread.php?tid=563188)
Calling a function by ID -
DamonD - 14.02.2015
My question is fairly simple, how can I call a function by it's ID and not direct name?
Basically, here is an example of what I mean:
pawn Code:
CallFunctionByID(funcname[])
{
new functionid = funcidx(funcname);
if(functionid != -1)
{
CallLocalFunction_ByID(functionid);
}
return 1;
}
Re: Calling a function by ID -
Golf - 14.02.2015
by using timers to call a function after the specified interval.