04.02.2017, 15:38
I got this question.
For example if I have this variable
And I set it somewhere like this:
Let's say the player with ID 12 uses the command and the variable is set for him, if he disconnect from the server and another player log in, the ID 12 will be assigned to him, will the variable for him be 1? Or will it reset back to 0?
Do I have to set all player variables to 0 when a player disconnect?
For example if I have this variable
PHP код:
new ExampleVar[MAX_PLAYERS];
PHP код:
ExampleVar[playerid] = 1;
Do I have to set all player variables to 0 when a player disconnect?