View Full Version : Access violation error =.=
System79
03-21-2007, 11:12 AM
I have a question about this error:
[Runtime Error] : Exception: Access violation at address 0064FEA2 in module 'scar.exe'. Read of address 00000000 in line 239 in script C:\Program Files\SCAR 2.03\includes\srl\srl\core\Text.scar
It happened when i was autowoodcutting and i came to the dropping,
What is wrong?..
And how do i fix it?
Sp0rky
03-21-2007, 11:20 AM
Can you post the script please?
System79
03-21-2007, 11:24 AM
It's my test script which i hope to build out into a powercutter o.o
program New;
{.include srl\srl.scar}
{.include srl\srl\skill\woodcutting.scar}
procedure Cuttree;
begin
repeat
if(FindColor(x,y,2248776,5,5,515,340))then
MMouse(x,y,3,3);
wait(50);
Mouse(x,y,0,0,true);
wait(6000);
until(InvFull);
end;
procedure Drop;
begin
DropAll;
end;
begin
repeat
activateclient;
Cuttree;
Drop;
until(false);
end.
Sp0rky
03-21-2007, 11:27 AM
You forgot to setup srl.
Change your main loop to this and see if it fix's the problem.
begin
SetupSRL;
repeat
activateclient;
Cuttree;
Drop;
until(false);
end.
System79
03-21-2007, 11:30 AM
fixed, stupid i forgot huh? ah well, cant be perfect ;o
Sp0rky
03-21-2007, 11:33 AM
lol, no we can't, I made the very same error not so long ago when creating some of my first scripts :)
I think this belongs in scipting help though :P
Not srl questions.
Boreas
03-21-2007, 11:58 AM
See my FAQ (link in sig) for a link to a tut by Freddy so that you will never forget again
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.