Results 1 to 5 of 5

Thread: Error? =/

  1. #1
    Join Date
    Jan 2012
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Error? =/

    [Error] (239:5): Unknown identifier 'CoursesDone' at line 238
    Compiling failed.


    have no idea? can someone help me?

  2. #2
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Quote Originally Posted by xBiO View Post
    [Error] (239:5): Unknown identifier 'CoursesDone' at line 238
    Compiling failed.


    have no idea? can someone help me?
    post the whole script that u r using.
    Unknown identifier means that the variable "CoursesDone" is not being defined.
    My guess is that it shd be an integer so just add
    Simba Code:
    Var
      CoursesDone: Integer;
    to the script.

  3. #3
    Join Date
    Jan 2012
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    if RightClickMethod then
    begin
    StatsGuise('Shooting Targets');
    for i := 1 to 10 do
    begin
    if FindObjEx(x, y, ['arget'], [5041405, 5238269], 7, 31, MSX1, MSY1, 375, 65) then
    ClickMouse2(False);
    Wait(200 + Random(150));
    ChooseOptionEx('arget', 'object');
    Wait(2400 + Random(150) + Laggy);
    MMouse(487, 42, 3, 3);
    Wait(550 + Random(150) + Laggy);
    if IsUpText('lose') then
    ClickMouse2(True);
    end;
    if FindObjTPA(x, y, 1845548, 11, 2, 15, 15, 50, ['ition']) or
    FindObjTPA(x, y, 2702911, 13, 2, 15, 15, 50, ['ition']) then
    Mouse(x, y, 5, 5, False);
    WaitOption('to C', 500);
    end;

    CoursesDone := (CoursesDone + 1);
    end;

    there it has the integer i think?

  4. #4
    Join Date
    Feb 2012
    Location
    Somewhere, over the rainbow...
    Posts
    2,272
    Mentioned
    3 Post(s)
    Quoted
    45 Post(s)

    Default

    Quote Originally Posted by xBiO View Post

    there it has the integer i think?

    No no no.

    You have to tell the script it is a number. How does your script know that CoursesDone isn't a string or a true or false statement? It doesn't.

    At the start of you script, before your DeclarePlayers procedure but after you define all your includes, put this:

    Simba Code:
    Var
      CoursesDone: Integer;

    If you have 'var' already there then just add CoursesDone: Integer; underneath it.

  5. #5
    Join Date
    Mar 2012
    Location
    Australia
    Posts
    625
    Mentioned
    0 Post(s)
    Quoted
    18 Post(s)

    Default

    This is Ryy's range guild script, you can't ask people to fix an anti leech for you.
    Bored of playing rs, and bored of botting it, why am i here?

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
  •