player info copies playerid 0
#3

Reset player variables when he disconnects.

PHP код:
public OnPlayerDisconnect(playeridreason) {
     
PlayerInfo[playerid][...] = 0;
     return 
1;

Reset them AFTER the player stats have been saved.
Reply


Messages In This Thread
player info copies playerid 0 - by MrakBuster - 08.02.2018, 21:25
Re: player info copies playerid 0 - by PepsiCola23 - 08.02.2018, 21:30
Re: player info copies playerid 0 - by Private200 - 08.02.2018, 21:31
Re: player info copies playerid 0 - by wallen - 08.02.2018, 21:38
Re: player info copies playerid 0 - by Private200 - 08.02.2018, 21:47
Re: player info copies playerid 0 - by jasperschellekens - 09.02.2018, 01:01
Re: player info copies playerid 0 - by Mugala - 09.02.2018, 09:50

Forum Jump:


Users browsing this thread: 1 Guest(s)