Raised This Month: $ Target: $400
 0% 

tag mismatch on line 359


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HLM
Senior Member
Join Date: Apr 2008
Location: C:\WINDOWS\System32
Old 05-12-2010 , 17:44   Re: tag mismatch on line 359
Reply With Quote #1

PHP Code:
        new Float:healthloss =( (float(g_bhealth[victimid])) / 2.5)
        
floatround(healthloss
__________________
+|- KARMA Respectively

HLM is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 05-12-2010 , 18:29   Re: tag mismatch on line 359
Reply With Quote #2

Quote:
Originally Posted by HLM View Post
PHP Code:
        new Float:healthloss =( (float(g_bhealth[victimid])) / 2.5)
        
floatround(healthloss
Code:
new healthloss = floatround( g_bhealth[victimid] / 2.5 )
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
Old 05-12-2010, 18:31
wrecked_
This message has been deleted by wrecked_. Reason: double
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 05-13-2010 , 06:40   Re: tag mismatch on line 359
Reply With Quote #4

The fastest way is Connor's ugly one with little modify:
PHP Code:
new healthloss g_bhealthvictimid ] * 
Somehow there's no point in keeping the values as integer if you do calculation with floats. Just create the variables with float tag and when showing the values leave decimals off if you so wish.

Last edited by SnoW; 05-13-2010 at 06:45.
SnoW is offline
Send a message via MSN to SnoW
HLM
Senior Member
Join Date: Apr 2008
Location: C:\WINDOWS\System32
Old 05-13-2010 , 22:17   Re: tag mismatch on line 359
Reply With Quote #5

I originally didnt intend to divide by 2.5, the original was 4, but I needed something a bit less than half of it (2.5 was perfect ;)) and well... yeah... then this happened
__________________
+|- KARMA Respectively

HLM 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 03:38.


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