Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Simple addaction problem  (Read 789 times)

0 Members and 1 Guest are viewing this topic.

Offline greg147

  • Contributing Member
  • **
    • Royal Air Assault Battalion
Simple addaction problem
« on: 26 Nov 2005, 15:40:57 »
Hi all,

I've searched around for this, and I can't see whats wrong.

I've got a simple script that activates when the player enters a trigger.

Code: [Select]
arty1 = aP addaction ["Call artillery strike","trig.sqs"]
aP being the player, trig being the script name and arty1 being the name I want the action to have (so I can remove it later)

But I get an error that says

arty1 |#| = aP addaction ["Call artillery strike","trig.sqs"]: Error reserved variable in expression

I can't work out whats wrong with this. It doesn't work in a trigger or a script.
Can anyone tell me whats wrong?

Thanks.
Royal Air Assault Battalion - [L/Cpl] Greg
RAAB

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Simple addaction problem
« Reply #1 on: 26 Nov 2005, 16:20:13 »
arty1 is apparently used by the game (perhaps an addon or mod you're running?) try changing the name

Offline greg147

  • Contributing Member
  • **
    • Royal Air Assault Battalion
Re:Simple addaction problem
« Reply #2 on: 26 Nov 2005, 16:35:24 »
Bah, I should have thought of that  ;)

I changed it to 'action1' and it works fine. Thanks.
Royal Air Assault Battalion - [L/Cpl] Greg
RAAB