Ez a mentés:
new file[100], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof name);
format(file, sizeof file, \"Mappa/%s.ini\", name);
if(dini_Exists(file))
{
dini_IntSet(file, \"Score\", GetPlayerScore(playerid));
}
Betöltés:
new file[100], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof name);
format(file, sizeof file, \"Mappa/%s.ini\", name);
if(dini_Exists(file))
{
SetPlayerScore(playerid, dini_Get(file, \"Score\"));
}