Results 1 to 7 of 7

Thread: chooseoption problem.

  1. #1
    Join Date
    Mar 2007
    Posts
    40
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default chooseoption problem.

    Well, I think I'm completely screwing this up..
    Code:
    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

  2. #2
    Join Date
    Sep 2006
    Posts
    916
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Just do ChooseOption(x, y, 'ocks');
    Exit

  3. #3
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by asdfasdfasdf View Post
    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

    Sorry, I just had to get that out.

  4. #4
    Join Date
    Mar 2007
    Posts
    40
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by hey321 View Post
    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

  5. #5
    Join Date
    Jan 2007
    Location
    Toronto.
    Posts
    150
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You need this in your main loop or youl get that:

    SCAR Code:
    SetupSRL;

  6. #6
    Join Date
    Mar 2007
    Posts
    40
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    In my actual loop? Or can I just do it once?

  7. #7
    Join Date
    Oct 2006
    Posts
    207
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You just need to do it once

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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Chooseoption help
    By Brianb in forum OSR Help
    Replies: 37
    Last Post: 08-27-2008, 07:30 PM
  2. ChooseOption
    By Harry in forum OSR Help
    Replies: 12
    Last Post: 03-03-2008, 04:20 AM
  3. Hwo to use ChooseOption
    By PwNZoRNooB in forum OSR Help
    Replies: 3
    Last Post: 04-29-2007, 09:22 PM
  4. ChooseOption
    By raimis89 in forum OSR Help
    Replies: 2
    Last Post: 01-22-2007, 06:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •