New players get other player's stats (occasionally)
#3

Quote:
Originally Posted by jlalt
Посмотреть сообщение
on player connect add:

PHP код:
    pInfo[playerid][Adminlevel] = 0;
    
pInfo[playerid][VIPlevel] = 0;
    
pInfo[playerid][Testerlevel] = 0;
    
pInfo[playerid][Money] = 0;
    
pInfo[playerid][Scores] = 0;
    
pInfo[playerid][Kills] = 0;
    
pInfo[playerid][Deaths] = 0;
    
pInfo[playerid][pBanned] = 0;
    
pInfo[playerid][BannedIP] = 0
That's the long way and this is the faster way and the annoying thing is you have to add every time you add something inside the enumerator.

pawn Код:
new
    resetpInfo[PlayerInfo];
    pInfo[playerid] = resetpInfo;
This resets everything inside the enumerator.
Reply


Messages In This Thread
New players get other player's stats (occasionally) - by Sebz - 19.12.2015, 14:48
Re: New players get other player's stats (occasionally) - by jlalt - 19.12.2015, 14:53
Re: New players get other player's stats (occasionally) - by Patrick - 19.12.2015, 15:28

Forum Jump:


Users browsing this thread: 1 Guest(s)