SA-MP Forums Archive
Ban(playerid); Reseting Enum File? - 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: Ban(playerid); Reseting Enum File? (/showthread.php?tid=225612)



Ban(playerid); Reseting Enum File? - YungGee - 14.02.2011

Why is the Ban(playerid); function reseting the "Account" enum file values? Resets score/levels and everything

I dnt even use ban in my enum??

Any answers? Happen to you?? Avoidable?


EDIT: Is it because i set all values to 0 OnPlayerConnect and load on /login? And when they try login after ban it sets to 0 because they connect for that split second? lol?


Re: Ban(playerid); Reseting Enum File? - Zack9764 - 14.02.2011

It is because when they connect it sets it to 0. It saves that to the file and doesn't do anything to load back the data.


Re: Ban(playerid); Reseting Enum File? - YungGee - 14.02.2011

i see xD