23.09.2014, 05:00
As the title itself says, i tried everything, here is the code for a better explanation on how i tried it.
pawn Код:
pSpree[MAX_PLAYERS] = 0,
static hSpree[MAX_PLAYERS] = 0;
under OnPlayerDeath(playerid)
/* if(pSpree[killerid] < hSpree[killerid])
{
pSpree[killerid] = hSpree[killerid];
format(szMessage, sizeof(szMessage), "%d", hSpree[killerid]);
SetPVarInt(killerid, "hSpree", GetPVarInt(killerid, "hSpree"));
}
*/
CMD:stats(playerid, params[])
{
new
pID,
Float:phealth = GetPlayerHealth(playerid, phealth),
Float:parmor = GetPlayerArmour(playerid, parmor),
pname[MAX_PLAYER_NAME];
if(sscanf(params, "u", pID))
{
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(szMessage, sizeof(szMessage), "==========>> {9EFFBD}[%d]%s{9EFFBD} Account Status <<===========", playerid, pname);
SendClientMessage(playerid, 0xAFD9FAFF, szMessage);
playerVariables[playerid][pConnectionIP] = GetPlayerIp(playerid, playerVariables[playerid][pConnectionIP], 32);
format(szMessage, sizeof(szMessage), "Connection IP: [%s]", playerVariables[playerid][pConnectionIP]);
SendClientMessage(playerid, COLOR_LIGHT, szMessage);
format(szMessage, sizeof(szMessage), "{8EED91}FPS: (%d) || {8EED91}Ping: (%d) || {8EED91}PacketLoss: (%.2f)", pFPS[playerid], GetPlayerPing(playerid), NetStats_PacketLossPercent(playerid));
SendClientMessage(playerid, 0x00FF00AA, szMessage);
format(szMessage, sizeof(szMessage), "{EAED8E}Admin Level: [%d] || {EAED8E}Current Kill Streak: [%d] || {EAED8E}Highest Killing Streak: [%d]", playerVariables[playerid][pAdminLevel], pSpree[playerid], [B][I]hSpree[playerid])[/I][/B];
SendClientMessage(playerid, COLOR_YELLOW, szMessage);
}
return 1;
}
//
it keeps sayign HighestKillingSpree is 0 no matter what i change