OFPEC Forum
Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting Multiplayer => Topic started by: Vic on 07 Oct 2009, 07:52:28
-
http://community.bistudio.com/wiki/ArmA:_Server_Side_Scripting
Has anyone managed to make some use of the server VM? I'm trying to run a script on regularCheck, but no matter what I add in that line, I keep getting an error in arma.rpt regarding a missing semicolon.
Example 1
regularCheck = "diag_log (_this select 0)";
Error in expression <diag_log (_this select 0)>
Error position: <(_this select 0)>
Error Missing ;
Example 2
regularCheck = "[] exec ""\myscripts\test.sqs"";";
Error in expression <[] exec "\myscripts\test.sqs";>
Error position: <exec "\myscripts\test.sqs";>
Error Missing ;
Is the server VM limited to just the kick/ban/users commands?
-
Try regularCheck = "{diag_log (_this select 0);}";
-
diag_log doesn't work in default ArmA2. You need the 'developers' version I believe? :P
-
diag_log works, debug_log doesnt