PDA

View Full Version : Script Comments



Zyt3x
09-11-2007, 02:25 PM
Comments is very usefull to comment on a procedure, a constance a variable and other things, to get the user to understand what it does.

It is also usefull to take away a part of a code:

Example:
Copy/Paste this into scar.

program New;
Begin
Wait(500)
//code.
//Wait(500) //This will only wait 0.5 second instead of 1 second.
End.



This is all "Comment Codes" that you can use.

//- comments are for 1 line only.
{}- comments are for 1+ lines.
(**)- comments are for 1+lines.

Example:
Copy/Paste this into scar.

program New;
begin
//Comment.
{Comment.}
(*Comment.*)
end.

Sir R. M8gic1an
09-11-2007, 06:14 PM
useful :) can't say it's new info, but it's definitively useful

{ this is a bigger example,
so that you can see how
well it works, although
we're changing lines }

gerauchert
09-11-2007, 06:18 PM
Most ppl can figure this out from reading any tutorial...

but hell, some ppl just have no common sense and actually need this lol

maybe add some more stuff to the tut instead of it only being for comments...

nice work otherwise :rolleyes:

Fruity-Lo0py
09-14-2007, 08:06 PM
Yes i can now comment some stuff out, thanks!

ShowerThoughts
09-14-2007, 08:11 PM
1 line=// for it
1+lines={here}

Boonce
09-17-2007, 06:20 AM
It's amazing how many people don't use comments in their code even though they are so useful. I think I over-comment my code. :P

Zyt3x
09-24-2007, 08:53 PM
lol! ^^

EDIT: Did you all know about the (* Comment *) ??? :P
I figured it out by myself! :o

deoxys505
10-02-2007, 01:00 AM
did not know about the (*comment*) thing... is that multi lines or single? crap dude!! thats a multi liner!

wafyl
11-05-2007, 10:01 PM
Thanks, this really helped!