HT BaaFly
2011-12-31 20:56:33
I'm trying to set a variable equal to a function in this function:
For example, if the input 'State' is equal to 0, I want menu to change to InGE if state is 1 then its isSellOpen i want it changed to and so on
is this possible?
Edit: Missing around with Types. might get something figured
procedure WaitBetweenLoading(State: integer); // 0 is buying, 1 is selling and 2 is GE menu
var
c: integer;
menu: string;
begin
Case State of
0: menu := isBuyOpen;
1: menu := isSellOpen;
2: menu := InGE;
end;
MarkTime(c)
While not menu do
begin
Wait(500);
If TimeFromMark(c) > 30000 then
Writeln('Could not get to the screen');
TerminateScript;
end;
end;For example, if the input 'State' is equal to 0, I want menu to change to InGE if state is 1 then its isSellOpen i want it changed to and so on
is this possible?
Edit: Missing around with Types. might get something figured