my scores are not saving
#1

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

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

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;
}
Reply
#4

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

Scripting Tutorials
Reply
#6

no i need some scripts for score saving please
Reply
#7

What do you use for saving?
Reply
#8

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

Yea How do u doing
Reply
#10

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

thanks it help me alot
Reply
#12

Err this should be in scripting discussion?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)