Need Help with saving score !!
#1

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
Reply
#2

The score can be saved exactly as you save your kills and money, same way.

How do you save your money and kills?
Reply
#3

Server saved it
Reply
#4

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.
Reply
#5

Quote:
Originally Posted by ahmedebrahem
Посмотреть сообщение
Server saved it
LOL, auto save the desired vars!
Reply
#6

Its easy dude you need to use YINI to load the User data , if you want more help regarding this forum PM me
Reply
#7

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)