25.08.2017, 13:10
Hello everyone, I've noticed that people usually reset their variables on player disconnect. Is it really necessary to do so? I understand saving system but not resetting variables at all.
Example:
Why would you put it to 0 if when a player leaves server it's over, he isn't anymore connected.
Example:
Код:
new variable[MAX_PLAYERS]; public OnPlayerConnect(playerid) { variable[playerid] = 0; } public OnPlayerDissconect(playerid, reason) { variable[playerid] = 0; }