19.12.2012, 14:23
(
Последний раз редактировалось Loox; 14.04.2013 в 18:29.
)
Solucionado.
format(String, sizeof(String), "KILLS: ~y~%d", Information[playerid][pKills]); TextDrawSetString(Killer[playerid], String); TextDrawShowForPlayer(playerid, Killer[playerid]); format(String, sizeof(String), "DEATHS: ~y~%d", Information[playerid][pDeaths]); TextDrawSetString(Dead[playerid], String); TextDrawShowForPlayer(playerid, Dead[playerid]); format(String, sizeof(String), "~y~%s", NombreJugador(playerid)); TextDrawSetString(Nombre[playerid], String); TextDrawShowForPlayer(playerid, Nombre[playerid]); format(String, sizeof(String), "RANK: ~y~%s", rango); TextDrawSetString(Ranking[playerid], String); TextDrawShowForPlayer(playerid, Ranking[playerid]); format(String, sizeof(String), "KILL RATIO: ~y~%0.2f", Float:Information[playerid][pKills]/Float:Information[playerid][pDeaths]); TextDrawSetString(Ratio[playerid], String); TextDrawShowForPlayer(playerid, Ratio[playerid]);
if(killerid == INVALID_PLAYER_ID) { Information[playerid][pDeaths]++; SetPlayerScore(killerid, GetPlayerScore(killerid)-1); } else { Information[killerid][pKills]++; SetPlayerScore(killerid,GetPlayerScore(killerid)+1); }