pev(id, pev_velocity, velocity) | I'm confused
Hi
This is my little code. PHP Code:
PHP Code:
When i slow, then think value will be small and when i are fast then think value will be high. but client_print show me a this [SPEED: 102032010... 10302.... 0] and when i jump [SPEED: x x 1021322....] the value that i have checked here if(fm_get_ent_speed(id) < 400) < - ( this is how i check player speed, as i know the normal speed is 240, duck 120 , walk 160 or 180 ) is wrong but in game it work like i want, like i calculated in code. it must work like this PHP Code:
or how it work like it work? |
Re: pev(id, pev_velocity, velocity) | I'm confused
you have to change this
PHP Code:
PHP Code:
|
Re: pev(id, pev_velocity, velocity) | I'm confused
Not entirely sure what you're trying to accomplish...
Anyway, you're printing integers when the velocity is a floated number. %i -> %f You should also store the value of fm_get_ent_speed in a variable instead of calling it x times. |
| All times are GMT -4. The time now is 12:11. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.