SRL Archive - News and General

Error? Read!


n3ss3s

2007-12-26 16:30:40

So, if you are using a script, any script, and it has an "error", or thats what you think, you need to consider this first -

ERROR is something that prevents the script from working,

a) One when compiling - the script doesn't even start, note that this does not mean that your acc just stands there, a compiling error.

b) A runtime error that stops the script.

If you get a real error - (a or b) copy and paste the error to the post you are going to complain in.

If the script doesn't do something you want to, don't call it error if it isn't, it just creates confusion.

Thank you.

King of Knives

2007-12-26 16:43:44

Wanting another stickied post, eh :p ?

If it's compiling errors in the player-setup lines, it's usually the users fault, because of bad player- or const-setup.

-Knives

Jackrawl

2007-12-26 17:10:00

The following can create a compile error.

Too many ends - there should be one for every case, for to do, and begin.
Too many semicolons - there should be one on every line unless it is a case, for to do, repeat, procedure, end (unless it is in the mainloop, then it needs a period) and 'program' which should be on the top.
A lack of or too many untils - there should be one for every repeat.
Incorrectly using GoTo or labels.
Not declaring variables or constants correctly.
Having too many 'program's in a script.
Not using a function or procedure correctly.

n3ss3s

2007-12-27 04:30:03

Jack,

a)

program New;
Var
I: Integer;
begin
For I := 0 To 4 Do
If I >= 0 Then
Writeln('Hax!');
end.

b) Like any of the noobs that can't solve the error right away, would solve it themselves :p