Home   Help Search Login Register  

Author Topic: Server Side Scripting  (Read 2703 times)

0 Members and 1 Guest are viewing this topic.

Offline Vic

  • Members
  • *
Server Side Scripting
« 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
Code: [Select]
regularCheck = "diag_log (_this select 0)";
Code: [Select]
Error in expression <diag_log (_this select 0)>
  Error position: <(_this select 0)>
  Error Missing ;

Example 2
Code: [Select]
regularCheck = "[] exec ""\myscripts\test.sqs"";";
Code: [Select]
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?
« Last Edit: 07 Oct 2009, 07:58:47 by Vic »

Offline tcp

  • Members
  • *
    • Violator Gaming
Re: Server Side Scripting
« Reply #1 on: 07 Oct 2009, 21:37:20 »
Try regularCheck = "{diag_log (_this select 0);}";

Offline Rommel92

  • Members
  • *
Re: Server Side Scripting
« Reply #2 on: 08 Oct 2009, 11:45:35 »
diag_log doesn't work in default ArmA2. You need the 'developers' version I believe?  :P

Offline Shuko

  • Members
  • *
Re: Server Side Scripting
« Reply #3 on: 08 Oct 2009, 15:28:58 »
diag_log works, debug_log doesnt