SA-MP Forums Archive
why 0 ? - 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: why 0 ? (/showthread.php?tid=549856)



why 0 ? - StR_MaRy - 09.12.2014

guys, i have a server and all players after they register and login they have level 0 why?


Re: why 0 ? - Beckett - 09.12.2014

If you have a script and you don't know what is it then don't use it because you will never know, otherwise read your whole script and try to understand it then you'll know why.


Re: why 0 ? - PowerPC603 - 09.12.2014

Because all variables that are created have "0" as default value.
If you want every player to have a level of 1 to begin with, you'll have to manually set that variable to 1 when they register.


Re: why 0 ? - StR_MaRy - 09.12.2014

how ?


Re: why 0 ? - Nourdin - 09.12.2014

If you are using a downloaded gamemode the problem could be at the savings when a player exits the server. If you have created it yourself the problem might be what Danice mentioned above. If you post your OnPlayerDisconnect and OnPlayerConnect here I'll try to help you.

Goodluck!


Re: why 0 ? - StR_MaRy - 09.12.2014

here are both http://www.girlshare.ro/34198237.7 thx for helping