Results 1 to 4 of 4

Thread: please help me

  1. #1
    Join Date
    Mar 2007
    Posts
    27
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    please help me

    I started to make this script, but once it logs on, i can't get it to cut wood.... i get this error everytime when it tries to find the tree... any suggestions?
    [Runtime Error] : Exception: Canvas does not allow drawing in line 179 in script C:\Program Files\SCAR 2.03\Scripts\my script.scar

  2. #2
    Join Date
    Sep 2006
    Location
    New Jersey, USA
    Posts
    5,347
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    You didn't call SetupSRL; at the start of your main loop.
    Interested in C# and Electrical Engineering? This might interest you.

  3. #3
    Join Date
    Feb 2007
    Location
    EST (US East Coast)
    Posts
    250
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Also you used some pretty old stuff in that script.

    Instead of MoveMouseSmooth, I would use MMouse or Mouse. They are included in SRL. Also, instead of all the bitmaps you used for logging in, this will replace it:
    SCAR Code:
    procedure DeclarePlayers;
    begin
     HowManyPlayers:=1; //Number of players... only supports 1 so dont change.
     NumberOfPlayers(HowManyPlayers); //Dont Change
     CurrentPlayer:=0; //Dont Change

     Players[0].Name :=''; //Name
     Players[0].Pass :=''; //PW
     Players[0].Nick :=''; //Nick
     Players[0].Active :=True; //Just keep it true.
    end;

    DeclarePlayers; will load those players into the player array. After setting up SRL run that procedure through then just type LoginPlayer; to log in to the player at CurrentPlayer. This is using the Player Array
    Temporarily inactive.

  4. #4
    Join Date
    Mar 2007
    Posts
    27
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default oh

    thanks guys!

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
  •