Results 1 to 8 of 8

Thread: Colon expected...

  1. #1
    Join Date
    May 2007
    Posts
    433
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default Colon expected...

    For some reason in my yew banker on line 60 it keeps saying colon expected.. I have no clue why or how... I'm posting the lines 1-60 here.

    __________________________________________________ _____

    SCAR Code:
    [SCAR]
    program SuperYewCutter;
    {.include SRL\SRL.scar}
    {.include SRL\SRL\Skill\Woodcutting.SCAR}
    {.include SRL\SRL\extended\xantiban.scar}

    // This is my second script ever, so it probably is not very good =P
    // As of 7/8/07, I need help to fix some small errors, so please help!
    // Must remove ploygottalk from the xantiban.

    //Start at Edgeville most Southern bank booth.

    const
    YewColor = 3168336; //Color of the yew tree.. should work
    LoadsToDo = 15; //Numb of Loads

    procedure DeclarePlayers;
    begin
    HowManyPlayers := 6; //Number of total players
    NumberOfPlayers(HowManyPlayers);
    CurrentPlayer := 0; //Which player starts first?

    Players[0].Name := 'Username';
    Players[0].Pass := 'Password';
    Players[0].Nick := 'Nick';
    Players[0].Active := True;

    Players[1].Name := 'UserName';
    Players[1].Pass := 'Password';
    Players[1].Nick := '3-4 letters of UserName';
    Players[1].Active := False;

    Players[2].Name := 'UserName';
    Players[2].Pass := 'Password';
    Players[2].Nick := '3-4 letters of UserName';
    Players[2].Active := False;

    Players[3].Name := 'UserName';
    Players[3].Pass := 'Password';
    Players[3].Nick := '3-4 letters of UserName';
    Players[3].Active := False;

    Players[4].Name := 'UserName';
    Players[4].Pass := 'Password';
    Players[4].Nick := '3-4 letters of UserName';
    Players[4].Active := False;

    Players[5].Name := 'UserName';
    Players[5].Pass := 'Password';
    Players[5].Nick := '3-4 letters of UserName';
    Players[5].Active := False;

    NickNameBMP := CreateBitmapMaskFromText(Players[CurrentPlayer].Nick, UpChars);
    end;
    //////////////////////////////////////////////////////////////////////////////////////////
    Var
    LogDTM, AxeHandleDTM, AxeHeadDTM, BrokenAxeDTM, RegularAxeDTM,

    //////////////////////////////////////////////////////////////

    Procedure LoadDTMs;

    begin
    Status('Loading DTMS')[/SCAR]

  2. #2
    Join Date
    Jun 2007
    Location
    New Yawk
    Posts
    943
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    If I'm not wrong, then line 60 is the line after Var.

    SO it should be:

    SCAR Code:
    LogDTM, AxeHandleDTM, AxeHeadDTM, BrokenAxeDTM, RegularAxeDTM:string;

    You were completely missing declaration of variables.
    I guess the holidays are over - no sig for now.

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

    Default

    Shouldn't DTM vars be integers?

    SCAR Code:
    var
      LogDTM, AxeHandleDTM, AxeHeadDTM, BrokenAxeDTM, RegularAxeDTM : Integer;

  4. #4
    Join Date
    Apr 2007
    Location
    Texas
    Posts
    1,668
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I love you don't even script for, or play rs, yet you still waste your time helping people solve errors .
    [IMG]http://farm3.static.flickr.com/2120/2052732965_348f3629d0_o.jpg[/IMG]

  5. #5
    Join Date
    May 2007
    Posts
    433
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Yeah I need to go fix some things up I'll post a new one later. Thanks!

  6. #6
    Join Date
    May 2007
    Posts
    433
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    SCAR Code:
    if(IsUpText('hop')) or (IsUpText('cho')) or (IsUpText('h o p'))then

    Is there anything wrong with this ?

  7. #7
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    its not going to find 'h o p'
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  8. #8
    Join Date
    May 2007
    Posts
    433
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Ok now it says invalid parmeters..

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Colon expected?
    By impiwimpi in forum OSR Help
    Replies: 9
    Last Post: 01-21-2009, 05:06 PM
  2. Colon expected...but where?!
    By Rich in forum OSR Help
    Replies: 3
    Last Post: 05-17-2008, 02:28 PM
  3. Colon expected.
    By skilld u in forum OSR Help
    Replies: 2
    Last Post: 02-24-2008, 11:54 PM
  4. colon expected ??
    By Ipewnjoo in forum OSR Help
    Replies: 5
    Last Post: 07-01-2007, 09:59 PM
  5. Colon Expected
    By Hey321 in forum OSR Help
    Replies: 3
    Last Post: 01-28-2007, 01:00 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
  •