What am i doing wrong here?
ingame it doesnt divide the 2 vallues, the result is always 0.00 no matter ho many kills or deaths id has
PHP Code:
new Msg[512];
new ratio = ((g_iKills[id]) / (g_iDeaths[id]));
set_hudmessage(g_Red, g_Green, g_Blue, 0.41, -0.89, 0, _, 0.2, 0.1, 0.1, 1);
format(Msg,511," Level: %i Exp: %i /%i ^n Kills: %i Deaths: %i K/D-Ratio: %.2f", g_iLevel[id], g_iXP[id], required_xp(id), g_iKills[id], g_iDeaths[id], ratio );
ShowSyncHudMsg(id, g_iSync, Msg);
__________________