PDA

View Full Version : please help me



ihavefriends
04-02-2007, 10:41 PM
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?:duh:
[Runtime Error] : Exception: Canvas does not allow drawing in line 179 in script C:\Program Files\SCAR 2.03\Scripts\my script.scar :duh:

Smartzkid
04-02-2007, 11:10 PM
You didn't call SetupSRL; at the start of your main loop.

ducels
04-03-2007, 12:21 AM
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:
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

ihavefriends
04-03-2007, 12:52 AM
thanks guys!