12.04.2014, 11:56
I can make you a Y_INI saving system, aight ?
put this ontop of the script
put this anywhere
Put this somewhere (if you have already the public, then put it at the public)
Isn't it simple ? instead of using dini, which is more complicated.
put this ontop of the script
pawn Код:
#define PATH "/Users/%s.ini"
pawn Код:
stock UserPath(playerid)
{
new string[128],playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,playername,sizeof(playername));
format(string,sizeof(string),PATH,playername);
return string;
}
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;
}