Quote:
Originally Posted by Equuuuin0X
I can make you a Y_INI saving system, aight ?
put this ontop of the script
pawn Код:
#define PATH "/Users/%s.ini"
put this anywhere
pawn Код:
stock UserPath(playerid) { new string[128],playername[MAX_PLAYER_NAME]; GetPlayerName(playerid,playername,sizeof(playername)); format(string,sizeof(string),PATH,playername); return string; }
Put this somewhere (if you have already the public, then put it at the public)
pawn Код:
public OnPlayerDisconnect(playerid, reason) { new INI:File = INI_Open(UserPath(playerid)); INI_SetTag(File,"data"); INI_WriteInt(File,"Score",GetPlayerScore); INI_Close(File); return 1; }
Isn't it simple ? instead of using dini, which is more complicated.
|
i did that the Score in tab will be money , it will be save me Score as money now ?