20.08.2012, 23:30
Okay, resetting variables is something I tend to do differently each time..
I have never really looked into the best places to reset them..
Sometimes I will reset them on connect, sometimes on disconnect, and sometimes both..
So, the question is, where is the best place to reset player variables?
Example:
I have never really looked into the best places to reset them..
Sometimes I will reset them on connect, sometimes on disconnect, and sometimes both..
So, the question is, where is the best place to reset player variables?
Example:
pawn Code:
new Example[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
Example[playerid] = 0;
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
Example[playerid] = 0;
return 1;
}