Server Side scores?
#2

Either use dudb:

http://forum.sa-mp.com/index.php?topic=4798.0


Or use this from southclaw:


Quote:
Originally Posted by [ĦŁ₣
ЉǾǖŦĦЗŁΛẄ ]
Here's a save system, you can also use this to save more things to a user file, such as money.
public OnPlayerDisconnect(playerid, reason)
{
new pFile[28], pName[24], score = GetPlayerScore(playerid);
GetPlayerName(playerid, pName, 24);
format(pFile, 28, "PlayerAccounts\%s.txt", pName);
if(!dini_Exists(pFile))dini_Create(pFile);
dini_IntSet(pFile, "score", score);
}
public OnPlayerConnect(playerid, reason)
{
new pName[24], pFile[28], pScore;
GetPlayerName(playerid, pName, 24);
format(pFile, 28, "PlayerAccounts\%s.txt", pName);
SetPlayerScore(playerid, dini_Int(pFile, "score"));
}


If you want to know how to add other things in to it ask me
Reply


Messages In This Thread
Server Side scores? - by Anthony_Brassi - 05.05.2010, 02:06
Re: Server Side scores? - by MWF2 - 05.05.2010, 03:02
Re: Server Side scores? - by Anthony_Brassi - 05.05.2010, 16:27

Forum Jump:


Users browsing this thread: 1 Guest(s)