So I want to know what percentage of the level he is at, but the number displayed in the hud is always wrong
PHP Code:
porcentaje = (g_ammopacks[id] / levelsAmmopack(g_level[id]))*100
and this is how i display it
PHP Code:
ShowSyncHudMsg(ID_SHOWHUD, g_MsgSync2, "|Vida: %s|^n|Chaleco: %s|^n|Level: %s|^n|AmmoPacks: %s/%s|^n|Restantes: %s (%d%%)|^n|Clase: %s|^n|Velocidad: %.0f|", AddComma(pev(ID_SHOWHUD, pev_health)), AddComma(get_user_armor(id)), AddComma(g_level[id]), AddComma(g_ammopacks[ID_SHOWHUD]),AddComma(levelsAmmopack(g_level[id])), AddComma(restantes), porcentaje, class, spd)
in the case of this picture it has to be 23.08 % the porcentage displayed, but it is 100 :s