Jump to content
Sign in to follow this  
tyger249

Debugging player variables in server?

Recommended Posts

Hello,

 

I'm a novice A3 modder who's trying to do some minor modifications to other people's work on my own server. What I'm having a great difficulty with is actually getting and setting variables. Naturally, I'd try to first study them to see how they behave. I'd enable the debug console on my server and launch it and use the debug console to try print out different vars but for a lot of the vars I just get something akin to "test Any" or the default parameters as output. Commands I tried:

diag_log format ["test %1", EPOCH_customVars find "Crypto"]; 
diag_log format ["test2 %1",  _this select 0 getVariable["VARS",call EPOCH_defaultVars_SEPXVar] ];
diag_log format ["test3 %1", _x setVariable ["Crypto",11] ];
_this select 0 setVariable ["Cash",100];
_this select 0 fnc_updateStats;
player setVariableˇ ["Crypto",11]

How would you test if those values were set correctly?

I'm also having some difficulty with grasping how the individual player is referenced. Is the reference passed on from function to function or is there a general player reference by uid or something akin to that?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×