Results 1 to 4 of 4

Thread: Problem with a flaxing script

  1. #1
    Join Date
    Feb 2007
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Problem with a Draynor Willow Whacker

    Line 72: [Error] (72:1): Unknown identifier 'HowManyPlayers'

    What does that mean..? :L

    The area is

    procedure DeclarePlayers;
    begin
    HowManyPlayers := 1;
    CurrentPlayer := StartPlayer;
    NumberOfPlayers(HowManyPlayers); // set arraylength

  2. #2
    Join Date
    Sep 2007
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I am by far an expert but give this a try.

    Change what you have there to this...

    SCAR Code:
    procedure DeclarePlayers;
    begin
      HowManyPlayers := 1;
      NumberOfPlayers(HowManyPlayers); // set arraylength
      CurrentPlayer := StartPlayer;

    putting currentplayer on the end there....that is what I have and it works fine. Plus I dont use a variable for my currentplayer. I just set it to ZERO instead.

  3. #3
    Join Date
    Sep 2007
    Location
    Pennsylvania
    Posts
    3,396
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I'm not too good with scripting but this is what I would try:

    SCAR Code:
    procedure DeclarePlayers;
    begin
    HowManyPlayers := 1;
    CurrentPlayer := 0;
    NumberOfPlayers(HowManyPlayers);

    And make sure if you're setting HowManyPlayers to 1 there is only one of these (or something similiar)
    SCAR Code:
    Players[0].Name  := '';
      Players[0].Pass  := '';
      Players[0].Nick  := '';
      Players[0].Active:= True;

    below

    SCAR Code:
    procedure DeclarePlayers;
    begin
    HowManyPlayers := 1;
    CurrentPlayer := 0;
    NumberOfPlayers(HowManyPlayers);


    If you're still getting the same error that means something is wrong with the script (btw I think it was because CurrentPlayer was set to 'StartPlayer', but I'm not positive )


    EDIT: Oh, depending on the script changing CurrentPlayer to 0 might not work, try it though and see what happens.

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

    Default

    Quote Originally Posted by Runescapian321 View Post
    I'm not too good with scripting but this is what I would try:

    SCAR Code:
    procedure DeclarePlayers;
    begin
    HowManyPlayers := 1;
    CurrentPlayer := 0;
    NumberOfPlayers(HowManyPlayers);

    And make sure if you're setting HowManyPlayers to 1 there is only one of these (or something similiar)
    SCAR Code:
    Players[0].Name  := '';
      Players[0].Pass  := '';
      Players[0].Nick  := '';
      Players[0].Active:= True;

    below

    SCAR Code:
    procedure DeclarePlayers;
    begin
    HowManyPlayers := 1;
    CurrentPlayer := 0;
    NumberOfPlayers(HowManyPlayers);


    If you're still getting the same error that means something is wrong with the script (btw I think it was because CurrentPlayer was set to 'StartPlayer', but I'm not positive )


    EDIT: Oh, depending on the script changing CurrentPlayer to 0 might not work, try it though and see what happens.
    The first one fixed my problem, but now it's giving me another one...


    Failed when compiling
    Line 51: [Error] (14746:39): Type mismatch in script C:\Documents and Settings\Vanessa\Desktop\SCAR\SCAR 3.12\Scripts\Flax Picker.scar


    And the line is...

    1: MouseBox(MSX1, MSY1, MSX2, MSY2, 3);

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Need help, problem with every script!
    By 71runemaker in forum OSR Help
    Replies: 6
    Last Post: 11-03-2007, 07:51 PM
  2. Hi, not a script problem as such...
    By King ? in forum OSR Help
    Replies: 4
    Last Post: 09-03-2007, 02:05 PM
  3. Got problem with my script someone help!
    By Ilikepie1995 in forum OSR Help
    Replies: 1
    Last Post: 06-23-2007, 03:03 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
  •