[HELP] Saving kills and death
#5

Oh yeah I didn't see the part of saving it with SeifAdmin.
pawn Код:
// inside 'info' enum
Death,
//OnPlayerDeath
AccountInfo[playerid][Death]++;
//in /status
format(stringdeaths,sizeof(stringdeaths),"Mortes: %d", AccountInfo[playerid][Death]);
SendClientMessage(playerid, 0xFF9933AA, stringdeaths);
//OnPlayerRegister
format(file, sizeof file, "Death: %d\n\r",AccountInfo[playerid][Death]);
{   fwrite(account, file); }
//In the saving varieble
format(file, sizeof file, "Death: %d\n\r",AccountInfo[playerid][Death]);
{   fwrite(account, file); }

//OnPlayerLogin
if (strfind(passres, "Death") != -1)
{
  value = GetFileValue(pass);
  AccountInfo[playerid][Death] = strval(value);
}
Do the same about the kills. I hope you understand from that.
Reply


Messages In This Thread
[HELP] Saving kills and death - by Hot - 11.03.2009, 18:28
Re: [HELP] Saving kills and death - by MenaceX^ - 11.03.2009, 18:30
Re: [HELP] Saving kills and death - by Hot - 11.03.2009, 18:39
Re: [HELP] Saving kills and death - by Hot - 11.03.2009, 19:15
Re: [HELP] Saving kills and death - by MenaceX^ - 11.03.2009, 19:41

Forum Jump:


Users browsing this thread: 1 Guest(s)