05.08.2016, 15:13
Just wanted to know if this can crash server or not.
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
Код:
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;
}
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


