Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

  Click here to go to the first Developer post in this thread.  

Thread: Command to prevent error-messages

  1. #11
    Quote Originally Posted by Xeno View Post
    Just look at your last post in the editing forums... You post a sqs code snippet and write that's what's in your sqf file. Or look what you wrote here: "In almost all my sqF files I have goto"... there is no goto in sqf.
    Create a file.sqF with
    Code:
    _a = 0;
    goto "jumpto";
    hint "this message won't be shown";
    _a = _a+1;
    #jumpto
    _a = _a+1;
    ~5.0
    if (_a==1) then {hint format ["%1",_a]};
    exit;
    and execute it by [] exec "file.sqf"; in your init.sqs or in a trigger.

    Why then is there NO hint "this message won't be shown" and no blackbox-error message? Why then is _a == 1 at the end of the file? Why then does this sqf (f like fox) executed with [] exec "file.sqf" work as expected and without any errors? I do not understand why people maintain this example would not work whereas it works without any error or problems.

    Why then does this code work when "there is no goto in sqf" ?

  2. #12
    That explains a lot.

    You're executing the file using "exec" instead of "execVM", which means it will be run as an SQS script, regardless of the file extension. (If I'm not mistaken.)

    You are essentially still writing and running SQS scripts, but merely mislabeling them as SQF.

    Gigabyte P67X-UD3-B3 Motherboard | Intel Core i7 2600k @ 4.0GHz | NVidia GeForce GTX770 4GB
    16GB Corsair XMS3 1600Mhz RAM | Kingston HyperX SSD | ASUS Xonar D2X
    sound | be Quiet! 700W PSU | Windows 7 x64

  3.   This is the last Developer post in this thread.   #13

  4. #14
    Quote Originally Posted by Dwarden View Post
    :
    Indeed.
    Documentation is not a dirty word.
    : TeamSPAFF : PRACS : RKSL : Stella Artois : Creme Eggs : GITS :

    Making working streetside IEDs since 2011.

  5. #15
    *stares at avatar*

    whoaw, you bought BI, what kind of a nice birthday present is that

    REALISM! No, fuck that, FIRE THE LASER!

  6. #16

  7. #17
    You're so gonna get infracted with that avatar ;-) Doesn't FADE get triggered by that sort of thing?
    Jedra's Addons
    Arma 2 : Enhanced Skills Slider
    Take On Helicopters : Take On Taxi | Jedra's Time Trials | Weapon Indicators | No Radar

Page 2 of 2 FirstFirst 12

Similar Threads

  1. 1.05 error messages
    By Xanthos581 in forum ARMA 2 & OA - GENERAL
    Replies: 5
    Last Post: Dec 28 2009, 23:51
  2. Error messages
    By gabgab in forum TROUBLESHOOTING
    Replies: 2
    Last Post: May 24 2004, 14:43
  3. Some error messages
    By Colonel_Klink in forum OFP : MAP EDITING (VISITOR)
    Replies: 9
    Last Post: Jun 19 2003, 08:06
  4. Strange error messages
    By Suma in forum *TROUBLESHOOTING FAQ
    Replies: 1
    Last Post: Nov 5 2002, 08:45

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •