Raised This Month: $ Target: $400
 0% 

Percentage problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 08-15-2010 , 09:59   Re: Percentage problem
Reply With Quote #2

Try
PHP Code:
//always do a debug check to see if your numbers are correct.
client_printprint_chat "debug: %d %d" get_nearest_marker(i) , gMarkerCount );

new 
Float:nearest floatget_nearest_marker(i) );
new 
Float:totalmarkers floatgMarkerCount );

new 
percent floatround( (nearest totalmarkers) * 100.0)[/b
__________________

Last edited by Bugsy; 08-15-2010 at 10:01.
Bugsy 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 21:54.


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