Results 1 to 9 of 9

Thread: Need help with a procedure

  1. #1
    Join Date
    Oct 2008
    Posts
    33
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Need help with a procedure

    I have been trying to start a procedure within my script but it constantly says uknown identifier with the procedures name. To make it a bit more clearly heres what im trying to do.



    begin
    while (MouseOverTree-Function)do
    begin
    AntiBan2;- Procedure and ive tried making it a function
    end;


    error I get-[Error] (16269:1): Unknown identifier 'AntiBan2' in script C:\Program Files\SCAR 3.15\Scripts\TheSaw1.scar


    Ill explain more if needed.

  2. #2
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    don't put numbers in the names of procedures and functions... name it "SecondAntiBan" or something like that!

  3. #3
    Join Date
    Oct 2008
    Posts
    33
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by mormonman View Post
    don't put numbers in the names of procedures and functions... name it "SecondAntiBan" or something like that!
    nope, didnt solve anything. Same error with a dif name- just AntiBan instead of antiban2.

  4. #4
    Join Date
    Dec 2007
    Posts
    2,766
    Mentioned
    2 Post(s)
    Quoted
    37 Post(s)

    Default

    Show the whole script and i'll try to fix ? :S

  5. #5
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Put this under DeclarePlayers.

    PRocedure AntiBan2; Forward;

    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

  6. #6
    Join Date
    Oct 2008
    Posts
    33
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by noidea View Post
    Put this under DeclarePlayers.

    PRocedure AntiBan2; Forward;

    THANKS! IT WORKED! finally...this has happened to me atleast five times now and its been a pain.

  7. #7
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by oakley123 View Post
    THANKS! IT WORKED! finally...this has happened to me atleast five times now and its been a pain.
    I'm glad it worked lol. When I first used SCAR, it took me FOREVER to figure that out to *Cough rep? Cough*
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

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

    Default

    When you want to call procedures or functions from other procedures or functions, the one that you want to call must be above the one you are calling it from. If that's not possible (if they call each other, for example), then you need to do what noidea said.

  9. #9
    Join Date
    Oct 2008
    Posts
    33
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by noidea View Post
    I'm glad it worked lol. When I first used SCAR, it took me FOREVER to figure that out to *Cough rep? Cough*

    ++REP fo you! sorry im so late on it

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Procedure?
    By shadowrec0n in forum OSR Help
    Replies: 3
    Last Post: 02-11-2008, 09:04 PM
  2. Procedure TypeSendRandom & Procedure AutoResponder!
    By Ultra in forum Research & Development Lounge
    Replies: 12
    Last Post: 01-08-2008, 07:04 PM
  3. Help with Procedure
    By Esteban in forum OSR Help
    Replies: 8
    Last Post: 07-06-2007, 03:45 AM
  4. Replies: 8
    Last Post: 05-24-2007, 11:57 PM
  5. Procedure that calls random procedure?
    By Secet in forum OSR Help
    Replies: 2
    Last Post: 03-03-2007, 03:56 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
  •