Log in

View Full Version : Help with Error



jarred1
06-12-2008, 08:33 AM
I've searched the forums, read tow long posts about common errors, and my problem has not been solved. When I run this script, this error appears:

[Runtime Error] : Exception: Canvas does not allow drawing in line 95 in script C:\Program Files\SCAR 3.15\includes\SRL/SRL/Core/Players.scar

If there is any way to fix this I would appreciate it.

Also, if anyone knows how to make a PlayerForm, then PM me, I need help with that also.

Thanks.

m0n3ym5k3r
06-12-2008, 08:46 AM
Try TuT island :P

jarred1
06-27-2008, 10:10 PM
I've looked there and can't find anything about errors to do with drawing on Canvas'. Oh, this is line 95 of my player, which gets the error... Result := FindColor(cx, cy, 16777215, 439, 491, 440, 492);

mixster
06-27-2008, 10:20 PM
There shouldn't be an issue with that line as it's identical to mine which does work and Canvas drawing errors usually occur when searching backwards (having a lower x2 or y2 value in a FindColor). It may be worth restarting Scar and seeing if that fixes it - I recommend ending the process in Task Manager as I find that makes sure it's fresh - otherwise providing Scar version, SRL rev and whether or not you're using SMART with it may help solve the problem.

jarred1
06-27-2008, 11:12 PM
I've restarted Scar, cleaned-up SRL, re-installed Scar and still nothing. Here's more info: I'm using SCAR DIVI CDE 3.15, SRL Rev #17, and this error only happens when I use SMART scripts. The same script without SMART works fine. Any help is VERY appreciated...