We are currently changing the Bohemia Interactive forum software. This means http://forums.bistudio.com will be 'Read Only' until Thursday 9 AM UTC. Apologies for the inconvenience.

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
    _a = 0;
    goto "jumpto";
    hint "this message won't be shown";
    _a = _a+1;
    _a = _a+1;
    if (_a==1) then {hint format ["%1",_a]};
    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 Z97-HD3 Motherboard | Intel Core i5 4690k @ 4.5GHz | NVidia GTX 970
    16GB G-Skill Ripjaws 2133MHz RAM | Kingston HyperX SSD | be Quiet! 750W PSU

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

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

    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
    Warrant Officer
    Join Date
    Mar 7 2011
    Saxilby, UK
    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