SA-MP Forums Archive
f**ked up register system - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: f**ked up register system (/showthread.php?tid=67447)



f**ked up register system - Martin_Smith - 01.03.2009

This is the register that i am useing, i removed a load of stuff of it so no one gets my script well the problem is that lets say, PLAYER A has 200 kills and lvl 4 admin then loggs out, and al off a sudden someone new registers and they have HIS STATS!! ahhh well here it is..lol

http://pastebin.com/m5abe9720


Re: f**ked up register system - Martin_Smith - 01.03.2009

any help? this is about 5th time i posted this on forums and im getting pretty pissed at people ignoreing


Re: f**ked up register system - Yaheli_Faro - 01.03.2009

Set all the player's stat variables to 0 in OnPlayerConnect.


Re: f**ked up register system - Martin_Smith - 01.03.2009

is that all, then its fixed?


Re: f**ked up register system - Martin_Smith - 01.03.2009

so, like

PlayerInfo[playerid][pAdmin] = 0;

blahblah


Re: f**ked up register system - Vince - 01.03.2009

Safest way to go is indeed resetting all values in the PlayerInfo to 0 in OnPlayerConnect.
You can also reset the values in OnPlayerDisconnect after you've written the the disconnected player's stats to his file.