Log in

View Full Version : chooseoption problem.



asdfasdfasdf
03-06-2007, 12:54 AM
Well, I think I'm completely screwing this up..


if isuptext('Mine') then
begin
mouse(x,y,0,0,false);
pie:= ChooseOption(x, y, 'ocks');
if pie then exit;
end;

Now, I don't even know if the above would work. The problem I have is, If I define pie as boolean at the beginning, it gets mad and says duplicate declaration. If i don't have pie:boolean; at the beginning it says type mismatch..so this is just plain annoying..help me:(

Hey321
03-06-2007, 02:04 AM
Just do ChooseOption(x, y, 'ocks');
Exit

bullzeye95
03-06-2007, 02:06 AM
Well, I think I'm completely screwing this up..
The problem I have is, If I define pie as boolean at the beginning, it gets mad

Haha dude that was hilarious :p

Sorry, I just had to get that out.

asdfasdfasdf
03-06-2007, 04:11 AM
Just do ChooseOption(x, y, 'ocks');
Exit

Doing that causes this:
[Runtime Error] : Exception: Access violation at address 0065478C in module 'scar.exe'. Read of address 00000000 in line 196 in script C:\Program Files\SCA 2.03\includes\srl\srl\core\Text.scar

NinjaTerrorist
03-06-2007, 04:32 AM
You need this in your main loop or youl get that:


SetupSRL;

asdfasdfasdf
03-06-2007, 11:43 AM
In my actual loop? Or can I just do it once?

danrox2004
03-06-2007, 12:17 PM
You just need to do it once

Edit: When did i get the tutorials thing? hehe cool