Hi boreas and everybody else viewing i'd like to ask what means this:
line 12: identifier excepted in script
here's line 12: procedure Write;
Any ideas?![]()
![]()
![]()
![]()
![]()
![]()
![]()
Hi boreas and everybody else viewing i'd like to ask what means this:
line 12: identifier excepted in script
here's line 12: procedure Write;
Any ideas?![]()
![]()
![]()
![]()
![]()
![]()
![]()
its probably the line before it, post the whole thing
program MyFirstScriptAutoTalker;
{////////////////////////////////////////////////////
// Script brought to you by:Lolislol //
// Hi so basicly this is my first script and i'm //
// Not responsible for any ban or item loss //
// This is an autotalker. //
// => HAPPY TALKING <= //
////////////////////////////////////////////////////}
//////////////// Don't Touch ////////////////////
const //
procedure Write; //
begin //
///////////////////////////////////////////////////
// Set Up Lines Below //
///////////////////////////////////////////////////
//Press enter to say the word you wrote!!!!!!!!!!!!
repeat
SendKeys('xxxxxxx'+chr(13)); //Change this to what you want to say.don't touch the chr(13)); just the xxxxxxx.
end;
procedure Stay1;
repeat
wait(1000); //Change for the amount you want to wait before it says again.
begin
Write;
Stay1;
end.
Please say all i have to fix!
You're probably missing an
in your scriptCode:end;
EDIT:
check out the changes i have made and learn from itCode:program MyFirstScriptAutoTalker; {//////////////////////////////////////////////////// // Script brought to you by:Lolislol // // Hi so basicly this is my first script and i'm // // Not responsible for any ban or item loss // // This is an autotalker. // // => HAPPY TALKING <= // ////////////////////////////////////////////////////} procedure Write; begin SendKeys('xxxxxxx'+chr(13)); //Change this to what you want to say.don't touch the chr(13)); just the xxxxxxx. end; begin Repeat Write; wait(1000); until(False) end.
Good Luck
SRL Wiki | SRL Rules | SRL Stats
Ultimate SCAR Scripting Tutorial | Starblaster100's Auth System | Join the official SRL IRC now!
Help Keep SRL Alive! Please disable Advert Blockers on SRL! Help Keep SRL Alive!
![]()
![]()
The const has nothing there, and its expecting something there. So either remove it or put something there. Putting something there will make your scripts easier to set up though, hint hint.
Also use scar tags. Click go advanced, and then click the scar symbol and paste your code in there.
Edit: spoiler to hint
don't use on rs, just IM yourself
SCAR Code:program MyFirstScriptAutoTalker;
{////////////////////////////////////////////////////
// Script brought to you by:Lolislol //
// Hi so basicly this is my first script and i'm //
// Not responsible for any ban or item loss //
// This is an autotalker. //
// => HAPPY TALKING <= //
////////////////////////////////////////////////////}
///////////////////////////////////////////////////
// Set Up Lines Below //
///////////////////////////////////////////////////
//Press enter to say the word you wrote!!!!!!!!!!!!
const msg='change this to your messsage';
const WaitTime=1000; //change to time between
//////////////// Don't Touch ////////////////////
procedure Write; //
begin //
SendKeys(msg+chr(13));
end;
procedure Stay1;
begin
wait(WaitTime);
end;
begin
repeat
Write;
Stay1;
until isfkeydown(12);//you need to tell repeat when to stop
//this will stop when you press f12
end.
Same error occured at line 19
SCAR Code:program MyFirstScriptAutoTalker;
{////////////////////////////////////////////////////
// Script brought to you by:Lolislol //
// Hi so basicly this is my first script and i'm //
// Not responsible for any ban or item loss //
// This is an autotalker. //
// => HAPPY TALKING <= //
////////////////////////////////////////////////////}
//////////////// Don't Touch //////////////////// //
procedure Write; //
begin //
///////////////////////////////////////////////////
// Set Up Lines Below //
///////////////////////////////////////////////////
//Press enter to say the word you wrote!!!!!!!!!!!!
repeat
SendKeys('xxxxxxx'+chr(13)); //Change this to what you want to say.don't touch the chr(13)); just the xxxxxxx.
end;
procedure Stay1;
repeat
wait(1000); //Change for the amount you want to wait before it says again.
begin
Write;
Stay1;
end.
BTW check the other thread, the link is ready.
Look at my or Star's versions.
Notice how the main loop has
begin
///
end.
Every function/procedure has
procedure/function NameOfProcedure;
begin
/////
end;
Every repeat has an until (condition);
Also notice the indenting, which makes it easier to see the things I just said.
Get driger's tutorial.exe and go through it.
Thanks! Now it works! But please, i need to know what number all the characters have now i know only that f12 is 12 and enter is 13 pelase gimme list
Thx
There are currently 1 users browsing this thread. (0 members and 1 guests)