26.01.2018, 14:30
OnPlayerDeath
Every time im killing and dying it's stuck at Ratio: 1.00, which i dont know whats wrong..
Код:
PlayerKills[killerid]++; PlayerDeaths[playerid]++; new iString[100]; new Float:ratio = PlayerKills[killerid]/PlayerDeaths[playerid]; format(iString, sizeof iString, "Kills: %i", PlayerKills[killerid]); TextDrawSetString(KILLS[killerid], iString); format(iString, sizeof iString, "Deaths: %i", PlayerDeaths[playerid]); TextDrawSetString(DEATHS[playerid], iString); format( iString, sizeof( iString ), "Ratio: %.2f", ratio); TextDrawSetString(RATIO[playerid], iString);