View Full Version : Ask a question(help thread for beginner-intermediates.).
n3ss3s
02-20-2007, 06:46 PM
Okay, i know my activity bar is low as oxygen at top of mt.everest, but thats only because i started scripting and all at sythe.org and because of that im used to be there. I've made about 8 scar scripts, half of them not published yet, So i think i can answer to most of your beginner-intermediate questions like
the access violation error and much else.
Feel free to post any your scar problem , if it is a tough one, then we both have a challenge :) :bart:
Jason2gs
02-20-2007, 06:56 PM
I made a procedure called "LogMeOut;" Lemme grab it...
procedure LogMeOut;
begin
wait(500+random(200));
if(InChat('pullout'))then
begin
Logout;
end;
end;
I put that in the Login file of SRL/core.
My question is...
Why does my script work like it's supposed to when it's like this:
program New;
{.include SRl/SRL.scar}
procedure LogMeOut;
begin
wait(500+random(200));
if(InChat('pullout'))then
begin
Logout;
end;
end;
begin
SetupSRL;
repeat
LogMeOut;
until(false)
end.
But not when it's like this:
program New;
{.include SRl/SRL.scar}
begin
SetupSRL;
repeat
LogMeOut;
until(false)
end.[/SCAR]
Are we not able to add procedures to the include files?
Boreas
02-20-2007, 09:42 PM
Okay, i know my activity bar is low as oxygen at top of mt.everest, but thats only because i started scripting and all at sythe.org and because of that im used to be there. I've made about 8 scar scripts, half of them not published yet, So i think i can answer to most of your beginner-intermediate questions like
the access violation error and much else.
Feel free to post any your scar problem , if it is a tough one, then we both have a challenge :) :bart:
There's no need for a thread like this, thats what SRL questions and Scripting Help sections are for. People can make their own threads for their problems.
I hope this isn't about looking good for your app.
Jason: did you save and close login.scar with your change?
legendaryhero90
02-21-2007, 12:13 AM
I made a procedure called "LogMeOut;" Lemme grab it...
procedure LogMeOut;
begin
wait(500+random(200));
if(InChat('pullout'))then
begin
Logout;
end;
end;
I put that in the Login file of SRL/core.
My question is...
Why does my script work like it's supposed to when it's like this:
program New;
{.include SRl/SRL.scar}
procedure LogMeOut;
begin
wait(500+random(200));
if(InChat('pullout'))then
begin
Logout;
end;
end;
begin
SetupSRL;
repeat
LogMeOut;
until(false)
end.
But not when it's like this:
program New;
{.include SRl/SRL.scar}
begin
SetupSRL;
repeat
LogMeOut;
until(false)
end.[/SCAR]
Are we not able to add procedures to the include files?
wait a second...
you said that you made a new procedure to the Login.scar right?
i think if you wouldve saved it, it still wouldnt work since in your own procedure your using someone else's porcedure... :confused: :confused:
ok im confusing myself now...
what im trying to say is that your using a procedure within a procedure...
im not sure if its gonna work like that but hey i could be wrong :D
Jason2gs
02-21-2007, 12:29 AM
Jason: did you save and close login.scar with your change?
Save and close? Lemme try...
Jason2gs
02-21-2007, 12:37 AM
'Tis still not working :(
Boreas
02-21-2007, 01:41 AM
Then forget about it. It's a short procedure, so just put it in top of your script. Includes are just for stuff that would clutter up a script.
Jason2gs
02-21-2007, 04:44 PM
Alright. Sounds good. Thanks :)
legendaryhero90
02-22-2007, 01:00 AM
Then forget about it. It's a short procedure, so just put it in top of your script. Includes are just for stuff that would clutter up a script.
that was kinda rude Boreas.....:mad: but yeah its a short procedure so sont worry about it...:D
Boreas
02-22-2007, 03:45 AM
Nah not really. Editing SRL only leads to confusion and problems, trust me I know. The thing to do is create your own include that includes SRL, and put your custom functions there. But that's besides the point, the proc can just be stuck in the script. I mean look at mmouse and other SRL procedures, you wouldn't want to put that in every script, but smaller ones are ok.
n3ss3s
02-23-2007, 04:15 PM
No,bo.These questions just looked good for getting exp and familiar here, ya know?
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.