Fixed
Fixed
Last edited by pl0xmypl0x; 08-28-2009 at 07:51 AM.
Until(EndsScript = LoadsToDo)
~Sandstorm
that gave me a type mismatch error?
Sorry, replace EndsScript with EndScript.
~Sandstorm
:= is used to assign a variable to something
Example: Int := 5; Bool := True; String := 'AbCdE';
= is used when checking if something is something.
Example: if Int = 5 then, if Bool then, if String = 'AbCdE' then
Exception is when using them as constants
const String = 'AbCdE';
Last edited by Zyt3x; 08-28-2009 at 05:27 AM.

And use >= just in case.
I do a for to do statement, what i do is:
SCAR Code:const
LoadsToDo = 4;//loads to do :)SCAR Code:var
i , Loads: Integer;//Global varsSCAR Code:begin
Loads := LoadsToDo;
for i := 0 to Loads do
begin
//rest of your stuff here,
//i took out a lot of stuff that i have in my main loop
//this is just the important stuff you need, tell me if you need help with anything or its not working :)
~King of the Nites
i tried that and i keep getting a Type Mismatch error ? what is wrong with this?
Bottom of mainloop:
SCAR Code:Report;
Until (EndScript >= Loadstodo)
Logout;
end.

EndScript and LoadsToDo need to be an Integer.. I'm assuming you did LoadsToDo in the const. Possibly you did LoadsToDo = '4365';? =X If so, then remove the (')'s and it'll work.But if it doesn't work, show whole script, please.
(Or PM me if you want to keep it private).
SCAR Code:Procedure MainLoop;
Begin
Repeat
DoStuff;
Bank;
ProgressReport;
Inc(Loads);
Until (Loads >= LoadsToDo);
End;
Rogeruk's Al-Kharid Tanner V1.1 [Released]
Rogeruk's Barbarian Crafter [Coming Soon]
Rogeruk's Guild Fisher [Coming Soon]
!! - Taking Requests - !!
its fixed now, its what ian said XD i had '' where i shouldn't![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)