Results 1 to 5 of 5

Thread: ??

  1. #1
    Join Date
    Aug 2007
    Location
    Vancouver
    Posts
    394
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default ??

    SCAR Code:
    Procedure WithdrawThemLogs;
    begin
      MakeCompass('N');
      wait(300 + random (23));
      OpenBankQuiet('veb');
      Wait(2000);
    case lowercase(Players[CurrentPlayer].Strings[0]) of//Line 127
    'Log'    :DoLog;
    'Willow' :DoOak;
    'Oak'    :DoWillow;
    'Magik'  :DoMagik;
    'Maple'  :DoMaple;
    'Yew'    :DoYew;
    end;
    end;

    SCAR Code:
    [Runtime Error] : Out Of Range in line 127 in script

    What do i do?

  2. #2
    Join Date
    Mar 2007
    Location
    Netherlands->Amersfoort.
    Posts
    1,615
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i don't know if this helps, but you did it a little thing wrong

    SCAR Code:
    Procedure WithdrawThemLogs;
    begin
      MakeCompass('N');
      wait(300 + random (23));
      OpenBankQuiet('veb');
      Wait(2000);
      case lowercase(Players[CurrentPlayer].Strings[0]) of//Line 127
        'log'    :DoLog;
        'willow' :DoOak; //willow = oak?
        'ook'    :DoWillow; //ook??= willow?
        'magik'  :DoMagik;
        'maple'  :DoMaple;
        'yew'    :DoYew;
      end;
    end;

    if you call the in lowercase, then make the ''awnsers'' in lowercase to!

  3. #3
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    The problem is because you haven't used declareplayers, now SCAR thinks such thing as Players[0] doesn't even exist

  4. #4
    Join Date
    Jun 2007
    Location
    Wednesday
    Posts
    2,446
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    also make sure you add '.Strings[0]' to your Players setup otherwise it won't exist and thus won't work.

  5. #5
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    Umm, no, it does exist, its the NumberOfPlayers being called that matters.

Thread Information

Users Browsing this Thread

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

Posting Permissions

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