Quote:
Originally Posted by hornet
Nah both of those didnt work 
|
It returns those huge values because you are using integers instead of floats.
Try this:
PHP Code:
new Float:x, y;
x = get_user_gravity(id);
y = get_user_gravity(id);
client_print(id, print_chat, "CORRECT %f FALSE %d", x, y);
You will see that CORRECT gravity will return 1.0 or 1.5 or 0.5 depending on the settings that have been made by you or other plugins.
Also you need to set the gravity using float values not integers.
PHP Code:
new Float:x = 1.0, y = 1;
set_user_gravity(id, x);
set_user_gravity(id, y); // Here you will get an error ;)
__________________