set_user_gravity
public mBoots(id) {
if (mBoot[id] > 0) { new uGrav = get_user_gravity(id) set_user_gravity(id,uGrav+(mBoot[id]*20)) } return PLUGIN_CONTINUE } And the mBoot is in the top as "mBoot[33] = 1" |
Re: set_user_gravity
First, please put your code in [small]-Tag and indent it:
Code:
I guess it tells you, that there is a Tag-Mismatch. Instead of Code:
Code:
20 is an Integer, not a Float (Use: 20.0). Also, this would increase the Players Gravity insanely high, not lower it. Note, that get_user_gravity(id) and set_user_gravity does not work like sv_gravity in Game. (Where 800 is normal Gravity) Here 1.0 is equal to 800 in Game while 0.0 is equal to 0 in Game. |
Re: set_user_gravity
Thanks duude
++karma |
Re: set_user_gravity
Well i've done this instead..
Code:
But now i get 3 warnings: Warning: Possibly unintended assignment on line 98 Warning: Possibly unintended assignment on line 100 Warning: Possibly unintended assignment on line 102 |
Re: set_user_gravity
Code:
new var = 42 |
Re: set_user_gravity
Well i know that, jRaven.
|
Re: set_user_gravity
stigma
you are using "=" instead of "==" |
| All times are GMT -4. The time now is 04:46. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.