25.10.2019, 14:02
Quote:
Hey!
I got a question about timers.. basically I'm not sure when should I use for example.. First option: Code:
new timer[MAX_PLAYERS]; timer[playerid] = SetTimerEx("Test", 2000, 0, "d", playerid); Second Option: Code:
SetTimerEx("Test", 2000, 0, "d", playerid); Because lets say I use the second option for multiple player id's.. I guess I gotta use first option if I use it for more player id's than one.. or ? |
PHP Code:
new timer[MAX_PLAYERS];
timer[playerid] = SetTimerEx("Test", 2000, 0, "d", playerid);
PHP Code:
OnPlayerDisconnect(playerid, reason)
{
KillTimer(timer[playerid]);
return 1;
}