Difference between revisions of "PC Setglobalreg"

From Hercules Wiki
Jump to: navigation, search
(Created page with "== Set player integer variable from source == #define pc_setglobalreg(sd,reg,val) pc_setregistry(sd,reg,val,3) pc_setglobalreg(sd,"VARIABLE_NAME", VALUE); This only w...")
 

Latest revision as of 03:23, 13 January 2013

Set player integer variable from source

#define pc_setglobalreg(sd,reg,val) pc_setregistry(sd,reg,val,3)
pc_setglobalreg(sd,"VARIABLE_NAME", VALUE);

This only works for numeric variables, strings check pc_setglobalreg_str.