Code doesn't work
Hey why isnt this code working?
PHP Code:
|
Re: Code doesn't work
Why do you use 0 and not id?
|
Re: Code doesn't work
0 is world, pev->maxspeed is not used for it
|
Re: Code doesn't work
so i have to use
PHP Code:
|
Re: Code doesn't work
Yes
Or : PHP Code:
PHP Code:
|
Re: Code doesn't work
Why is it better to use entity_get_float ?
|
Re: Code doesn't work
Use first. entity_get_float() has to handle more code, and even though it doesn't make really a difference, better to use native which does directly the job, so get_user_maxspeed().
|
Re: Code doesn't work
Thanks arkshine and connor, i think i got it now
|
Re: Code doesn't work
Sorry for offtopic.
Quote:
For example: it these case it's not better to use entity_get_float() instead of pev() ? Fakemeta have all pev_ values in pev() function and Engine have function in grouped in entity_get_int; entity_get_vector; entity_get_edict; etc. so it's not a little better engine because have all those functions grouped ? |
Re: Code doesn't work
He was talking about get_user_maxspeed against entity_get_float.
get_user_maxspeed is better than entity_get_float, and entity_get_float is better than pev, but again, this is trivial, the 3 ways are ok, well coded code with pev is better than feet (french expression) coded code with get_user_maxspeed. |
| All times are GMT -4. The time now is 06:30. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.