Raised This Month: $ Target: $400
 0% 

Getting float values from pev()


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 01-09-2005 , 00:57   Getting float values from pev()
Reply With Quote #1

For the pev() function, the AMXx funcwiki says "To retrieve a float, pass a single float by reference." The only examples of finding a float value from pev() is when it returns a vector, and in that case it is an array so it needs a float by reference. But if you are retrieving a single-value float, such as pev_nextthink, do you still need to pass a float by reference?
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 01-09-2005 , 05:56  
Reply With Quote #2

Why not use the entvars functions of the engine module? (pev : pointer (to) ent vars).

Anyway, from the description you provided, you should pass a normal float, it will be passed by reference automatically if it's a variable argument list.
__________________
hello, i am pm
PM is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:28.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode