Need Help with saving score !! - 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: Need Help with saving score !! (
/showthread.php?tid=568188)
Need Help with saving score !! -
ahmedebrahem - 20.03.2015
Hey Guys
When I'm kill any one or answer the quz I won 1 score and when I'm exit my server and open it again my score became 0 but it save my kills and money
I want to save my score What should I do ??
Sorry for my bad English
Respuesta: Need Help with saving score !! -
[DOG]irinel1996 - 20.03.2015
The score can be saved exactly as you save your kills and money, same way.
How do you save your money and kills?
Re: Need Help with saving score !! -
ahmedebrahem - 20.03.2015
Server saved it
Respuesta: Need Help with saving score !! -
[DOG]irinel1996 - 20.03.2015
No no, the server doesn't save player stats by default, there must be a code which does that. You have to find that code to see how does it work, and try to do that with player's score.
Re: Need Help with saving score !! -
$$inSane - 20.03.2015
Quote:
Originally Posted by ahmedebrahem
Server saved it
|
LOL, auto save the desired vars!
Re: Need Help with saving score !! -
fuckingcruse - 20.03.2015
Its easy dude you need to use YINI to load the User data , if you want more help regarding this forum PM me
Re: Need Help with saving score !! -
maximthepain - 20.03.2015
I will guide you to use those functions to create the score save:
First get player score then add it with the saving kills and money then just load it once at login (after reseting any vars).
https://sampwiki.blast.hk/wiki/GetPlayerScore
https://sampforum.blast.hk/showthread.php?tid=175565