forums

TNT Basic Forums > Programming Q&A
Why doesn't this work?
< Last Thread     Next Thread >
Author
Thread        Post A Reply

03-10-2002 21:09

Posted by:
Scoops

Find more posts by Scoops

Please look at this:

rem initialise variables
global int x, y
rem Set Up Graphics Mode
graphics mode 640, 480

rem Loop for the drawing

for x = 0 to 639 step 16
for y = 0 to 479 step 16

set pen colour make colour (random(0,255),random(0,255),random(0,255)
set pen transparency 100
fill rect x,y to x+16,y+16

next
next

Draw Frame

I get an invalid expression error at the first X variable of the fill rect command. Why is that?

03-11-2002 08:16

Posted by:
Mark Tully

Find more posts by Mark Tully

Hi Scoops,

I've had a quick look at your code, I think the problem might be that you're missing a closing bracket on the set pen colour line.

Hope this helps,

Mark

03-11-2002 08:35

Posted by:
Scoops

Find more posts by Scoops

Doh!

All times are GMT        Post A Reply

Forum Jump:
< Last Thread     Next Thread >

< Contact Us - TNT Basic >

Powered by: vBulletin Lite Version 1.0.1 Lite
Copyright © Jelsoft Enterprises Limited 2000.