GetPlayerPoolSize - 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: GetPlayerPoolSize (
/showthread.php?tid=576270)
GetPlayerPoolSize -
Banditukas - 02.06.2015
Hi,
Код:
FreezeAll()
{
for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++) // note that we assign the return value to a new variable (j) to avoid calling the function with each iteration
{
TogglePlayerControllable(i, 0);
}
}
i get that j is unknow it means i need create it? new j; ?