Results 1 to 8 of 8

Thread: It won't compile!

  1. #1
    Join Date
    Jan 2008
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default It won't compile!

    I keep getting this error when I try to compile my script.

    Failed when compiling
    Line 13: [Error] (13:1): Unknown identifier 'HowManyPlayers' in script C:\Program Files\SCAR 3.13\Scripts\PowerChopper.scar

    Here is the whole procedure:
    Code:
    procedure DeclarePlayers;
    begin
      HowManyPlayers := 3; //Number of PLAYERS. active or not.
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer := 0; //Player to start on
      
      Players[0].Name := ''; //Username of selected account
      Players[0].Pass := ''; //Password of account
      Players[0].Nick := ''; //3-4 letters from the middle of account name
      Players[0].Active := True; //True if account will be used / False if account will not be used
      
      Players[1].Name := '';
      Players[1].Pass := '';
      Players[1].Nick := '';
      Players[1].Active := True;
      
      Players[2].Name := '';
      Players[2].Pass := '';
      Players[2].Nick := '';
      Players[2].Active := True;
    
      //VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV//
      ////                              DON'T TOUCH                             ////
      //VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV//
      NickNameBMP := CreateBitmapMaskFromText(Players[CurrentPlayer].Nick, UpChars);
    end;

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

    Default

    Did you include SRL?

  3. #3
    Join Date
    Dec 2006
    Location
    Banville
    Posts
    3,914
    Mentioned
    12 Post(s)
    Quoted
    98 Post(s)

    Default

    HowManyPlayers is a variable you must create yourself.
    The jealous temper of mankind, ever more disposed to censure than
    to praise the work of others, has constantly made the pursuit of new
    methods and systems no less perilous than the search after unknown
    lands and seas.

  4. #4
    Join Date
    Jan 2008
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by bullzeye95 View Post
    Did you include SRL?
    I forgot the first dot -_-


    It still fails to compile.

    Failed when compiling
    Line 57: [Error] (10282:24): Type mismatch in script C:\Program Files\SCAR 3.13\includes\SRL/SRL/Core/AntiRandoms/EvilBob.scar

    Is there something wrong with the antirandoms?

    Edit: This error still comes up after I remove the antirandoms and antiban from my script.

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

    Default

    Quote Originally Posted by R0b0t1 View Post
    HowManyPlayers is a variable you must create yourself.
    Actually, it's included in SRL.

    Quote Originally Posted by Xemnas View Post
    I forgot the first dot -_-


    It still fails to compile.

    Failed when compiling
    Line 57: [Error] (10282:24): Type mismatch in script C:\Program Files\SCAR 3.13\includes\SRL/SRL/Core/AntiRandoms/EvilBob.scar

    Is there something wrong with the antirandoms?

    Edit: This error still comes up after I remove the antirandoms and antiban from my script.
    There's a sticky somewhere made by Markus. It tells you how to fix it.

  6. #6
    Join Date
    Jun 2007
    Location
    Mianus
    Posts
    863
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I think i can help out if u post the script

  7. #7
    Join Date
    Jan 2008
    Location
    Norway
    Posts
    39
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

  8. #8
    Join Date
    Dec 2007
    Posts
    103
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You bassicly only have to redownload SRL and "Move plugins". Have had the EvilBob error many times before.
    This sentence is false.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Cant Compile
    By nhstarter10 in forum OSR Help
    Replies: 5
    Last Post: 11-26-2008, 01:42 AM

Posting Permissions

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