BryceTheCoder Posted December 15, 2011 Share Posted December 15, 2011 hii. i was wonering i know in i can add const hello = 0; buuutt noww how do i make it so IF hello is zero do this.. AANNDD how do i make it change the hello int. Likkeem ake it something around hello = 1; Quote Link to comment Share on other sites More sharing options...
wyn10 Posted December 15, 2011 Share Posted December 15, 2011 (edited) hello := 0 if bla bla bla then repeat Inc(hello) until bla bla bla if (hello = 5) then writeln('Bla?'); Like that? I have no idea what you're trying to get at. Edited December 15, 2011 by wyn10 Quote Link to comment Share on other sites More sharing options...
BryceTheCoder Posted December 15, 2011 Author Share Posted December 15, 2011 (edited) EDIT: I get an error on this line: ready := 0 saying: is ('=') expected HERE IS MY CODE I HAVE: const ready := 0 procedure StartUp; begin if (ready = 0) then begin WriteLn('--------------------------------------------------------------'); WriteLn(''); WriteLn('-> YOU ARE RUNNING ON VERSION: ' + version); WriteLn(''); WriteLn('Always make sure you have the latest version:)'); WriteLn(''); WriteLn('--------------------------------------------------------------'); ready := 1; end; ClickCompass(True); Wait(200 + Random(500)); end; Edited December 15, 2011 by BryceTheCoder Quote Link to comment Share on other sites More sharing options...
Janilabo Posted December 15, 2011 Share Posted December 15, 2011 (edited) ready is a constant. Constants work like this: ready = 0; ..but... As it is a constant, it cannot be changed within script runtime.. So you get an Internal error. To solve your problem, you will need to use VARIABLE for it. Like: var ready: Integer; procedure StartUp; begin if(ready = 0)then begin WriteLn('--------------------------------------------------------------'); WriteLn(''); WriteLn('-> YOU ARE RUNNING ON VERSION: ' + version); WriteLn(''); WriteLn('Always make sure you have the latest version:)'); WriteLn(''); WriteLn('--------------------------------------------------------------'); ready:= 1; end; ClickCompass(True); Wait(200 + Random(500)); end; Edited December 15, 2011 by Janilabo Quote Link to comment Share on other sites More sharing options...
BryceTheCoder Posted December 16, 2011 Author Share Posted December 16, 2011 thannnnkk youu:) Quote Link to comment Share on other sites More sharing options...