Security issue with Y_INI + Dialog reg 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)
+--- Thread: Security issue with Y_INI + Dialog reg system. (
/showthread.php?tid=395722)
Security issue with Y_INI + Dialog reg system. -
caki - 27.11.2012
As title say's i have noticed while i was scripting server was online. I was last in game and after me some random guy connected. I have noticed that he got all the same ''stats'' as my account like somewone did copy/paste. So in generally any new player get's last player online stats...
This is my register function. It should set all variables to 0 and onplayerspawn to only add 10000$ and score 1
I tried to find mistake but i fail so any help would be more than great. Thanks
EDIT: Solved i forgot to reset all values on player connect. Lock please.