Jump to content

vova _fox

Member
  • Content Count

    39
  • Joined

  • Last visited

  • Medals

Everything posted by vova _fox

  1. vova _fox

    SQS to SQF Script Help

    you can use command call everywhere
  2. vova _fox

    SQS to SQF Script Help

    try { number = random 60; if (number < 14) then {throw "SP1"}; if (number > 14 AND number < 23) then {throw "SP2"}; if (number > 23 AND number < 30.5) then {throw "SP3"}; if (number > 30.5 AND number < 34) then {throw "SP4"}; if (number > 34 AND number < 41) then {throw "SP5"}; if (number > 41 AND number < 46) then {throw "SP6"}; if (number > 46 AND number < 51) then {throw "SP6"}; throw "exit"; } catch { switch _exception do { case "SP1" : { //Group, Area, ASize, Num Of Enemy [group01,Spa1,400,100] call spawnbuild; }; case "SP2" : { //Group, Area, ASize, Num Of Enemy [group01,Spa2,400,100] call spawnbuild; }; case "SP3" : { //Group, Area, ASize, Num Of Enemy [group01,Spa3,400,100] call spawnbuild; }; case "SP4 : { //Group, Area, ASize, Num Of Enemy [group01,Spa4,200,100] call spawnbuild; }; case "SP5" : { //Group, Area, ASize, Num Of Enemy [group01,Spa5,200,100] call spawnbuild; }; case "SP6" : { //Group, Area, ASize, Num Of Enemy [group01,Spa6,200,100] call spawnbuild; }; case "SP7" : { //Group, Area, ASize, Num Of Enemy [group01,Spa4,200,100] call spawnbuild; [group01,Spa5,200,100] call spawnbuild; [group01,Spa6,200,100] call spawnbuild; }; case "exit" : {}; }; };
  3. vova _fox

    For loops counting up or down

    wrong code: if () then {} ; else {}; right if () then {} else {};
  4. {unit addmagazine "m16"} foreach [0,0,0,0,0,0,0,0,0,0];
  5. vova _fox

    forEach in conditions

    ({!(_x in (crew uVeh))} count (units uMyGroup))==0
  6. just call it the same way Dr. Eyeball did, since the main function body is quite the same ([_a,_b] call fn_ArraysAreEqual) ... Regards, Zap vf_arraysareequal= { private ["_i, _array"]; _array=_this select 1; if(count _array!=count (_this select 0)) exitwith{false}; _i=-1; ({_i=_i+1; _x != (_array select _i)} count (_this select 0))==0 };
  7. vova _fox

    img valign in html control

    Should show the picture in the upper left corner with the text starting from the upper right corner of the picture and continues on the right side of the picture. This is also what is displayed when viewing the html-file in a normal browser, but not when viewing it in a Arma HTML dialog-control. The picture is on the left side, but the text starts on the bottom right of the picture, as if there wasnt a 'valign' setting in the <img> tag. Am i doing something wrong, is there a way around this or am I just going to have to accept it as a limitation of the engine? all works (parsetext "<t size='1' align='right' valign 'top' ><img image='galka.paa'/></t>"); if you want create image with text then: (parsetext "<t size='1' align='right' valign 'top' ><img image='galka.paa'/></t>"+"<t size='1' align='right' valign 'top' >"+"texttexttextextetextetex"+"</t>");
  8. Hello all. It really to change image color in structured text? I'am trying this: ((finddisplay 800) displayctrl 103) ctrlSetStructuredText (parsetext "<t size='1' align='right'><img color='#ffffff00' image='galka.paa'/></t>"); image d'ont change color... Another question: How use command createdisplay? I'am write: waituntil { !isnull (finddisplay 46) }; _display=finddisplay 46; _display createDisplay "RscObserver" but it do no effect... p.s. sorry for my english
  9. vova _fox

    Local variables filtering down

    scope using in scripts too: _a=1; if (true) then {private ["_a"]; _a=50}; ... result: _a=1 ... _a=1; for [{private["_a"]; _a=0},{_a>= 10},{_a=_a+1}] do { .. }; result: _a=1 and also in while , switch, try catch...edc but in for "_i" from 0 to 10 do { ... }; _i will be allways private
  10. vova _fox

    Sleep or WaitUntil?

    while {true} do { call {....}; sleep 1; }; but i like use this: _t=time-1; waituntil { if (time -_t >= 1) then {call {...}; _t = time}; true }; i'am thing there is more fps..
  11. dialog.sqf (_nul=[] execvm "dialog.sqf") if (!(createDialog "dlgGameMaster")) exitwith {hint "fatal erorr!"}; lbAdd[102, "This is a test - 1"]; lbAdd[102, "This is a test - 2"]; ctrlSetText[101, "The label text have been changed.."]; waitUntil {!dialog}; p.s. my english very bad
×