SA-MP Forums Archive
my scores are not saving - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Client Support (https://sampforum.blast.hk/forumdisplay.php?fid=16)
+--- Thread: my scores are not saving (/showthread.php?tid=310829)



my scores are not saving - iOmar - 14.01.2012

my server is not hosted, SO when i shut down the server lose all scores. Can any one know how to save scores??


Re: my scores are not saving - Mean - 14.01.2012

Use a file saving system, or a MySQL database. Tutorials can be found all around the forum.


Re: my scores are not saving - Konstantinos - 14.01.2012

OnPlayerDisconnect the scores are saved?
If yes, paste the saving part from OnPlayerDisconnect to OnFilterScriptExit. You will need the foreach.
pawn Код:
public OnFilterScriptExit()
{
    foreach(Player, i)
    {
        // Code Here
        // Instead (ex:) PlayerInfo[playerid][Admin], use PlayerInfo[i][Admin]
    }
    // Rest
    return 1;
}



Re: my scores are not saving - iOmar - 14.01.2012

can any one show me tutorial?? So it will help me alot


Re: my scores are not saving - Konstantinos - 14.01.2012

Scripting Tutorials


Re: my scores are not saving - iOmar - 14.01.2012

no i need some scripts for score saving please


Re: my scores are not saving - Konstantinos - 14.01.2012

What do you use for saving?


Re: my scores are not saving - iOmar - 14.01.2012

thanks i solved my prob
But one more thing can you give me /giveallscore and /giveallmoney cmd code for if and else


Re: my scores are not saving - XxGenerationXx - 14.01.2012

Yea How do u doing


Re: my scores are not saving - iOmar - 15.01.2012

i don't understand. In GM Where i need to make loop shouth bro


Re: my scores are not saving - iOmar - 15.01.2012

thanks it help me alot


Re: my scores are not saving - thimo - 17.01.2012

Err this should be in scripting discussion?