28.02.2012, 22:18
This is my dissconect code.
PHP код:
new string[128], PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
format(string, sizeof(string), "Scores/%s.ini", PlayerName);
if(fexist(string))
{
dini_IntSet(string, "Score", GetPlayerScore(playerid));
}
else
{
dini_Create(string);
dini_IntSet(string, "Score", GetPlayerScore(playerid));
}