[HELP] Score Save add in GM whitout register or login
#5

Quote:
Originally Posted by ʞɹod ɹǝpıds || SpiderPork
You have to use a /register command to save the stats in a file.
Hmm... But Doesn't it be going to without?

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));
 	}
}
But it doesn't works!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)