23.02.2009, 17:29
Hey all. I'm working on a little adminscript and need a bit of help with it :/
So im trying to get it to save stats. Here's what i got:
That code doesn't work, The stats dont save D: Please help :P
-V3-
So im trying to get it to save stats. Here's what i got:
Код:
public OnPlayerDisconnect(playerid, reason)
{
new pname[MAX_PLAYER_NAME];
new Destination[50];
format(Destination,sizeof(Destination),"\\Users\\%s.ini",pname);
if (Logged[playerid] == 1)
{
GetPlayerName(playerid, pname, sizeof(pname));
dini_IntSet(udb_encode(Destination),"Money", GetPlayerMoney(playerid));
dini_IntSet(udb_encode(Destination),"Score", GetPlayerScore(playerid));
}
return 1;
}
-V3-

