Home   Help Search Login Register  

Author Topic: Gunship Deathmatch Scrolling sqf script(Help needed)  (Read 1250 times)

0 Members and 1 Guest are viewing this topic.

Offline ArMaTeC

  • Members
  • *
  • City Life 2
    • armatechsquad.com
hi im making a intro with Scrolling Text in it but it looks like my code is broken but i cant see where any help welcome.

scrolling.sqf
Code: [Select]
// Gunship Deathmatch
// By ArMaTeC
//
// Usage: scrolling text on screen intro
// Usage: _scrool =[[Message], Delay, IDC] execVM "movie\scroller.sqf";
// Usage: _scrool =[[" U",".","N",".","A","."], 300, 1000] execVM "movie\scroller.sqf";
// Edited: 08.06.07 17:40
_array = _This select 0;
_baud = _this select 1;
_IDC = _this select 2;
_i = 0;
_arcount = 0;
_currenttext = "";
IF (IsScrolling > 0)then{
waitUntil {DoneScrolling == (_IDC)- 1};
};

while {(true)} do {
IsScrolling = _IDC;
_wait = 10/_baud;
_i = 0;
while {true} do {
CtrlSetText [_IDC, _currentText + "_"];
_arcount =count _array;
if (_i >= _arcount)then{
playsound "CMBeep";
_i = 0;
while {_i < 2} do {
sleep _wait;
CtrlSetText [_IDC, _currentText + ""];
sleep _wait;
CtrlSetText [_IDC, _currentText + "_"];
_i = _i + 1;
};
sleep _wait;
DoneScrolling = _IDC;
while {true} do {
CtrlSetText [_IDC, _currentText + ""];
sleep _wait;
if ((IsScrolling != _IDC) or (!Dialog))Exitwith{};
sleep _wait;
CtrlSetText [_IDC, _currentText + "_"];
     };
//Mando thanks
waitUntil {DoneScrolling == _IDC - 1;};
   };

sleep _wait;
_currentText = _CurrentText + (_array select _i);
_i = (_i)+ 1;
playsound "ScrollClick";
};
};

Thanks for taking the time to read this
« Last Edit: 09 Jun 2007, 23:10:05 by ArMaTeC »

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Gunship Deathmatch Scrolling sqf script(Help needed)
« Reply #1 on: 09 Jun 2007, 21:41:56 »
Code: [Select]
@DoneScrolling == _IDC - 1;

->

Code: [Select]
waitUntil {DoneScrolling == _IDC - 1;};

Offline ArMaTeC

  • Members
  • *
  • City Life 2
    • armatechsquad.com
Re: Gunship Deathmatch Scrolling sqf script(Help needed)
« Reply #2 on: 09 Jun 2007, 22:16:37 »
lol i dont belive i missed that lol