Why it doesn't work as it should ?
Hey there guys.
I have set a variable NEM_HEALTH = 150000 And when I am setting it using fm_set_user_health() something weird is happening and the health getting set is 114204721 which is not what I want. Does anyone knows what is happening ? |
Re: Why it doesn't work as it should ?
Show some code.
|
Re: Why it doesn't work as it should ?
Probably integer/float problem
|
Re: Why it doesn't work as it should ?
It's just 2 line Hamlet.
First -- PHP Code:
PHP Code:
Can you help me out |
Re: Why it doesn't work as it should ?
it happens with me one time when i try to set an entity health
try PHP Code:
|
Re: Why it doesn't work as it should ?
Quote:
It still doesn't work |
Re: Why it doesn't work as it should ?
Nope, that stupid function wants in integer so the problem isn't integer/float conversion. Anyway, please don't use functions from fakemeta_util like the one you are using.
How do you know the value is incorrect? The health hud can show max 255. |
Re: Why it doesn't work as it should ?
Quote:
How, can I fix it ? |
Re: Why it doesn't work as it should ?
hire a professional
|
Re: Why it doesn't work as it should ?
Your assumption is that the value is not set properly, but I'm pretty sure your bug is in how you actually check the value.
Show the hudmessage code. |
| All times are GMT -4. The time now is 17:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.