forums

TNT Basic Forums > Programming Q&A
Funny error
< Last Thread     Next Thread >
Author
Thread        Post A Reply

02-02-2002 22:39

Posted by:
Charles

Click Here to Email Charles   Find more posts by Charles

I've got my first problem.
Here's the code

Graphics Mode 640,480
Set Framerate 30
VBL Sync off

Global int xPos=200
Global int yPos=200

While Mouse Button = False

Line 50,50 to xPos,yPos

HandleInput()

Draw Frame

Wend

Procedure HandleInput(

if Left
xPos=xPos-1
end if

if Right
xPos=xPos+1
end if

if Up
yPos=yPos+1
end if

if Down
yPos=yPos-1
end if)

end proc

TNT gives me a syntax error on the last "end if".

02-03-2002 20:27

Posted by:
Charles

Click Here to Email Charles   Find more posts by Charles

Forget it

I sorted it out.
I had the bracket at the end instead of after the proc name. Silly bugger ; )

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.