Raised This Month: $ Target: $400
 0% 

tag mismatch on line 359


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 05-10-2010 , 16:35   Re: tag mismatch on line 359
Reply With Quote #1

PHP Code:
 new Float:maxreward float(get_pcvar_num(amx_ok_max))

// you can also do

get_pcvar_float(UrCvar
__________________
I am out of order!
grimvh2 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-10-2010 , 16:42   Re: tag mismatch on line 359
Reply With Quote #2

I guess the error is on line :

new healthloss = g_bhealth[victimid]/2.5

I don't think you can divide an integer by a float.

Try :

new healthloss = (g_bhealth[victimid]*10)/25
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 05-11-2010 , 09:18   Re: tag mismatch on line 359
Reply With Quote #3

Quote:
Originally Posted by ConnorMcLeod View Post
I guess the error is on line :

new healthloss = g_bhealth[victimid]/2.5

I don't think you can divide an integer by a float.

Try :

new healthloss = (g_bhealth[victimid]*10)/25
False.

PHP Code:
stock Float:operator/(oper1Float:oper2)
     return 
floatdiv(float(oper1), oper2); 
SnoW is offline
Send a message via MSN to SnoW
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-11-2010 , 11:42   Re: tag mismatch on line 359
Reply With Quote #4

That's what i say :

floatdiv returns a Float, so

new healthloss

should be

new Float:healthloss
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-11-2010 , 13:04   Re: tag mismatch on line 359
Reply With Quote #5

Quote:
Originally Posted by SnoW View Post
False.

PHP Code:
stock Float:operator/(oper1Float:oper2)
     return 
floatdiv(float(oper1), oper2); 
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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