Question regarding player variables
#1

I got this question.

For example if I have this variable
PHP код:
new ExampleVar[MAX_PLAYERS]; 
And I set it somewhere like this:
PHP код:
ExampleVar[playerid] = 1
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?
Reply
#2

Yes, it is possible. Set the variable back to 0 when the player disconnects.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)