Reg/log spremanje scorea DM server!

Započeo Sperke[x], Januar 09, 2014, 23:36:33 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Ovako moj reg/log sistem sprema sve osim scorea!
Na mom serveru igraci kad ubiju igraca iz protivnickog tima dobiju jedan score i sad score koji su zaradili ne sprema se,a rank se sprema tako da mi treba samo dio reg/log spremanja samo da dodam da se sprema i score!
EVO KODA:
public OnPlayerUpdate(playerid)
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid])
{
new string3[64];
new playername3[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername3, sizeof(playername3));
format(string3, sizeof(string3), "accounts/%s.ini", playername3);
new File: hFile = fopen(string3, io_write);
if (hFile)
{
new var[64];
format(var, 64, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid);
format(var, 64, "Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var);
format(var, 64, "Admin=%d\n",PlayerInfo[playerid][pAdmin]);fwrite(hFile, var);
format(var, 64, "Reg=%d\n",PlayerInfo[playerid][pReg]);fwrite(hFile, var);
format(var, 64, "Cash=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
format(var, 64, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);
format(var, 64, "Deaths=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var);
format(var, 64, "Rank=%d\n",PlayerInfo[playerid][pRank]);fwrite(hFile, var);
format(var, 64, "Donator=%d\n",PlayerInfo[playerid][pDonator]);fwrite(hFile, var);
format(var, 64, "Team=%d\n",PlayerInfo[playerid][pTeam]);fwrite(hFile, var);
format(var, 64, "Warns=%d\n",PlayerInfo[playerid][pWarns]);fwrite(hFile, var);
format(var, 64, "Locked=%d\n",PlayerInfo[playerid][pLocked]);fwrite(hFile, var);
fclose(hFile);
}
}
}
return 1;
}


Ovo tu treba spremat score format(var, 64, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);


Ali nesprama zato molim pomoc msm on spremi score u /stats gdje pise KIlls ali kad igrac stisne TAB tamo score kad god ude stoji nula zato me zanima kako da napravim i kad igrac stisne TAB da mu i tamo stoji score koji jezaradio priije!
SKRIPTER |ZAUZET
MAPER | SLOBODAN

OnPlayerConnect stavi:

SetPlayerScore(playerid, PlayerInfo[playerid][pKills]);
RESPECT: Blaeks, Yui_Sang, Gagi, Kapetan Husein, Luksa, Slay, Denis_Lapi, Zoran(Dude)

Programski jezici koje koristim: C, C#, Visual Basic, HTML, CSS, PHP (tek ucim).


Gdje da stavim ovo OnPlayerConnect
SKRIPTER |ZAUZET
MAPER | SLOBODAN

Kucas u pawnu znaci uzmes pretrazivac ono find i kucas public OnPlayerConnect i pod taj callback znaci dodaj samo SetPlayerScore(playerid, PlayerInfo[playerid][pKills]);
RESPECT: Blaeks, Yui_Sang, Gagi, Kapetan Husein, Luksa, Slay, Denis_Lapi, Zoran(Dude)

Programski jezici koje koristim: C, C#, Visual Basic, HTML, CSS, PHP (tek ucim).


Fala radi TNX! :D
SKRIPTER |ZAUZET
MAPER | SLOBODAN