Raised This Month: $ Target: $400
 0% 

Return Problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
StickP0le
Senior Member
Join Date: Jan 2010
Location: cuantocabron.com
Old 01-18-2012 , 01:04   Return Problem
Reply With Quote #1

Well I have an estatistics menu where it says the kills, deads, ect.
The other day i wanted to add something more so I add a ratio of kills and deads
and the porcentage the the player complete of levels and in both cases return me 0.
Code:
    len += formatex(menu[len], sizeof menu - 1 - len,"\wRatio: \r%.2f^n^n", (g_kills[id] + g_infectados[id]) / (g_muertes[id]+1))
and
Code:
 len += formatex(menu[len], sizeof menu - 1 - len,"\wCompleto: \r%.2f %% \wde personaje^n", (g_level[id] / 639) * 100)

Last edited by StickP0le; 01-18-2012 at 01:05.
StickP0le is offline
StickP0le
Senior Member
Join Date: Jan 2010
Location: cuantocabron.com
Old 02-01-2012 , 17:38   Re: Return Problem
Reply With Quote #2

bump
StickP0le is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-01-2012 , 17:40   Re: Return Problem
Reply With Quote #3

Code:
    len += formatex(menu[len], sizeof menu - 1 - len,"\wRatio: \r%.2f^n^n", float(g_kills[id] + g_infectados[id]) / (g_muertes[id]+1))
and
Code:
 len += formatex(menu[len], sizeof menu - 1 - len,"\wCompleto: \r%.2f %% \wde personaje^n", (g_level[id] * 100.0 / 639.0))
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
StickP0le
Senior Member
Join Date: Jan 2010
Location: cuantocabron.com
Old 02-01-2012 , 17:44   Re: Return Problem
Reply With Quote #4

yes, thanks man it works
StickP0le is offline
Reply



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 15:10.


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