Raised This Month: $51 Target: $400
 12% 

Solved Mathematical Problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
THC420
Junior Member
Join Date: Apr 2018
Old 04-16-2018 , 10:45   Mathematical Problem
Reply With Quote #1

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_SHOWHUDg_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_SHOWHUDpev_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
Attached Thumbnails
Click image for larger version

Name:	zp.png
Views:	78
Size:	25.8 KB
ID:	169354  

Last edited by THC420; 04-18-2018 at 09:05.
THC420 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:06.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode