Log in

View Full Version : scar scripting question..



sherlockmeister
08-01-2007, 03:19 PM
these are some things that i have not been able to find out in any tutorial and i was wondering what they do...

try

except

div

package

WTF??? idk what that last one is but i typed it by mistake and it become highlighted

edit: it didn't become highlighted in the scar tags but it does in scar itself, try it!

skatetopia2006
08-01-2007, 03:27 PM
There should be a beginner guide that tells you what these mean.

sherlockmeister
08-01-2007, 03:30 PM
like i said none of the tuts i read told me what they do

JuKKa
08-01-2007, 03:38 PM
try
finally
except

avoids run time errors (i think).

Example:


try
//Load a bitmap
finally
findbitmap(bitmap,x,y);
freebitmap(bitmap);
except
writeln('error');
end;


dunno if thats how u use it but..

XcanadamanX
08-01-2007, 03:42 PM
div = divide you can also use / to divide