26.02.2009, 17:51
Quote:
|
Originally Posted by ʞɹod ɹǝpıds || SpiderPork
You have to use a /register command to save the stats in a file.
|
I tried this code:
Код:
public OnPlayerDisconnect(playerid)
{
new pname[MAX_PLAYER_NAME];
new Destination[256];
new Logged[MAX_PLAYERS];
GetPlayerName(playerid, pname, sizeof(pname));
format(Destination,sizeof(Destination),"\\Users\\%s.ini",pname);
if (dini_Exists(Destination) && Logged[playerid])
{
dini_IntSet(Destination,"Score", GetPlayerScore(playerid));
}
}

