Raised This Month: $ Target: $400
 0% 

Tag Mismatch - float [SOLVED!]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 09-12-2008 , 04:30   Tag Mismatch - float [SOLVED!]
Reply With Quote #1

PHP Code:
new Floataveraj floatround(float(g_TotalVote 2)); 
g_TotalVote is asign to a value here:
PHP Code:
g_TotalVote num
num is from get_players function.
__________________


Last edited by anakin_cstrike; 09-12-2008 at 16:01.
anakin_cstrike is offline
atomen
Veteran Member
Join Date: Oct 2006
Location: Stockholm, Sweden
Old 09-12-2008 , 04:39   Re: Tag Mismatch - float
Reply With Quote #2

You create a float and use floatround...

floatround() = float -> integer
float() = integer -> float
PHP Code:
new Float:average = (float(g_TotalVote) / 2.0); 
__________________

Last edited by atomen; 09-12-2008 at 05:04.
atomen is offline
Send a message via MSN to atomen
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 09-12-2008 , 16:01   Re: Tag Mismatch - float
Reply With Quote #3

Oh...
__________________

anakin_cstrike is offline
Reply


Thread Tools
Display Modes

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:11.


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