10.06.2012, 10:35
Hi !
I have a problem with saving stats when closing samp-server.exe window.
When i make a gmx the stats (level,kills,exp) are saving
Here is the code:
So under OnGameModeExit(); i have putted GameModeExit();
I have created OnGameModeExit() just for this. Before this that function doesn't existed, maybe that is the problem ?
I have a problem with saving stats when closing samp-server.exe window.
When i make a gmx the stats (level,kills,exp) are saving
Here is the code:
Код:
if(strcmp(cmd, "/gmx", true) == 0) {
if(IsPlayerConnected(playerid)) {
if (PlayerInfo[playerid][pAdmin] >= 1338) {
GameModeExit();
}
else {
SendClientMessage(playerid, COLOR_GRAD1, " Niste ovlasteni da koristite tu komandu !");
}
}
return 1;
}
Код:
public OnGameModeExit()
{
GameModeExit();
return 1;
}


(i will try
)