Quote:
Originally Posted by KissLick
Please don't use preprocessor macros
|
For aliasing datamap and sendprop functions I really don't see the problem.
To answer the question you will mostly be using one of the
GetEntProp* functions which take Prop_Send or Prop_Data as it's second argument.
To get a list of properties for each prop type you can use the following console commands which outputs a file in your servers root directory and contains all of the properties.
Prop_Data properties: sm_dump_datamaps datamaps.txt
Prop_Send properties: sm_dump_netprops netprops.txt
Really the only time I ever used GetEntData was back before GetEntProp existed or before you could specify an array index within GetEntProp.
This is the new macro you would want to use:
PHP Code:
#define get_user_money(%1) GetEntProp(%1, Prop_Send, "m_iAccount")