PDA

View Full Version : SRL woodcutting include Faulty???



seany
11-13-2006, 01:20 AM
ok i was then about to start to script my own Powerchopper, and added one of the includes being {.include SRL/SRL/Skill/Woodcutting.scar} and then tried compiling but it cape up with a error!!

a unknown identifier on line 26 of the include 'GameTab'

So its obviously the gametab :P

could somone please help me out here

thanks to all that help :)

Hey321
11-13-2006, 01:23 AM
Post what's on line 26 and i'll see if i can help :).

Infantry001
11-13-2006, 01:25 AM
did you put in

{.include SRL\SRL.scar}
first and put

SetupSRL;
in the beginning of the main loop?

IronTeapot
11-13-2006, 03:42 AM
I think it is because something in {.include SRL/SRL/Skill/Woodcutting.scar} calls to the gametab function which is an {.include SRL/SRL.scar} function. if you dont have that {.include SRL/SRL.scar} then none of the other functions that use srl core functions will work.

Roberty Bob
11-13-2006, 11:30 AM
that's correct, many things are defined (such as variables, constants etc.), even basic functions such as Mouse and so on... that will cause plenty of errors should you try to use the woodcutting include without the main incude.

You just need to include the main SRL.scar as you said.
But as Infintry001 mentioned...
The "SetupSRL;" is required for quite a few things too... especially text recognition and so on.