05.05.2010, 03:02
Either use dudb:
http://forum.sa-mp.com/index.php?topic=4798.0
Or use this from southclaw:
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 ![]() |