08.09.2018, 10:31
Hello, I have a ratio problem , It is...
* When I'm in DM if I have 0 deaths with any number of kills it's not working IDK why, but if I have even 1 death it is working without any errors
here's a pic of ratio when I have 0 deaths with 4 kills:

here's a pic of ratio when I have 1 death with 4 kills:

here's my code:
THANKS!
* When I'm in DM if I have 0 deaths with any number of kills it's not working IDK why, but if I have even 1 death it is working without any errors
here's a pic of ratio when I have 0 deaths with 4 kills:

here's a pic of ratio when I have 1 death with 4 kills:

here's my code:
Код:
//under OnPlayerDeath format(str4, sizeof(str4), "ratio:_%.2f", floatdiv(DMKILLS[killerid], DMDEATHS[killerid])); format(str5, sizeof(str5), "ratio:_%.2f", floatdiv(DMKILLS[playerid], DMDEATHS[playerid])); PlayerTextDrawSetString(killerid, DM5, str4); PlayerTextDrawSetString(playerid, DM5, str5);

