20.12.2012, 13:43
(
Последний раз редактировалось Loox; 14.04.2013 в 18:30.
)
Solved.
if(killerid == INVALID_PLAYER_ID) { Information[playerid][pDeaths]++; SetPlayerScore(killerid, GetPlayerScore(killerid)-1); } else { Information[killerid][pKills]++; SetPlayerScore(killerid,GetPlayerScore(killerid)+1); }
TextDrawHideForPlayer( playerid, textdrawID );
TextDrawShowForPlayer( playerid, textdrawID );
Information[playerid][pDeaths]++;
if(killerid == INVALID_PLAYER_ID)
{
SetPlayerScore(killerid, GetPlayerScore(killerid)-1);
}
else
{
Information[killerid][pKills]++;
SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
}
format(String, sizeof(String), "KILLS: ~y~%d", Information[killerid][pKills]);
TextDrawSetString(Killer[killerid], String);
format(String, sizeof(String), "DEATHS: ~y~%d", Information[playerid][pDeaths]);
TextDrawSetString(Dead[playerid], String);
/* format(String, sizeof(String), "~y~%s", NombreJugador(playerid));
TextDrawSetString(Nombre[playerid], String); */ // I'm unsure what this is, that's why I just commented it
/* format(String, sizeof(String), "RANK: ~y~%s", rango);
TextDrawSetString(Ranking[playerid], String); */ //show us rango before you uncomment this please
format(String, sizeof(String), "KILL RATIO: ~y~%0.2f", Float:Information[playerid][pKills]/Float:Information[playerid][pDeaths]);
TextDrawSetString(Ratio[playerid], String);
format(String, sizeof(String), "KILL RATIO: ~y~%0.2f", Float:Information[killerid][pKills]/Float:Information[killerid][pDeaths]);
TextDrawSetString(Ratio[killerid], String);