CallLocalFunction
#1

Just wanted to know if this can crash server or not.

Код:
new timer,startedmaps;

OnGamemodeInit
{
timer = SetTimer("antich", 5000, true);
startedmaps = 1;
return 1;
}

forward antich();

public antich()
{
if(startedmaps == 1) {CallLocalFunction("OnMapUpdate","i");}
foreach (Player,i)
{
// anticheats here
}
return 1;
}

function OnMapUpdate ()
{
// checking map seconds

return 1;
}
I was curious as it says "CallLocalFunction crashes the server if it's passing an empty string." on samp wiki: https://sampwiki.blast.hk/wiki/CallLocalFunction

Clearly I am not passing any string in that function so will it possibly crash ?

Also Is the function passing globally? since I made the variable and timer global
Reply


Messages In This Thread
CallLocalFunction - by Penguin1997 - 05.08.2016, 15:13
Re: CallLocalFunction - by Vince - 05.08.2016, 16:25
Re: CallLocalFunction - by Penguin1997 - 05.08.2016, 17:38

Forum Jump:


Users browsing this thread: 1 Guest(s)