Home   Help Search Login Register  

Author Topic: Simple Problem but its got me  (Read 837 times)

0 Members and 3 Guests are viewing this topic.

Offline Trenchfeet

  • Members
  • *
  • I'm a llama!
    • Trenchfeet OFP Addons
Simple Problem but its got me
« on: 21 Jun 2003, 12:42:04 »
Hi all i'am having a simple problem but i still can't work it out???

class eventhandlers
{
        init = "if !(isengineon (_this Select 0)) then {[_this select 0] exec {\ju52fp\opendoors.sqs}} else{[_this select 0] exec {\ju52fp\closedoors.sqs}}";
"[_this select 0] exec "\ju52fp\float.sqs"";

bold works fine

italic
it doesn't i've tried changing it too just [this] and moving the " but still not luck

any help would be much appreciated

Skaircro

  • Guest
Re:Simple Problem but its got me
« Reply #1 on: 21 Jun 2003, 15:32:44 »
Try this:
init = "if !(isengineon (_this Select 0)) then {[_this select 0] exec {\ju52fp\opendoors.sqs}} else{[_this select 0] exec {\ju52fp\closedoors.sqs}}; [_this select 0] exec ""\ju52fp\float.sqs""";


Or this:
init = "if !(isengineon (_this Select 0)) then {[_this select 0] exec ""\ju52fp\opendoors.sqs""} else{[_this select 0] exec ""\ju52fp\closedoors.sqs""}; [_this select 0] exec ""\ju52fp\float.sqs""";


Offline Trenchfeet

  • Members
  • *
  • I'm a llama!
    • Trenchfeet OFP Addons
Re:Simple Problem but its got me
« Reply #2 on: 22 Jun 2003, 03:45:26 »
The first one worked  ;D
Thank you,
Thank you,
Thank you,
Thank you,
Thank you

Skaircro

  • Guest
Re:Simple Problem but its got me
« Reply #3 on: 22 Jun 2003, 15:24:13 »
Glad to help.  ;)