help with tutorial pls

Previous topic - Next topic

Pahl

I'm currently reading through the tutorial and am at

1.4 Words:


LET a$="My"
LET b$="favourite number:"
LET c= 7
LET c$=a$ + " " + b$ + " : " + c
PRINT c$,0,20
SHOWSCREEN

The window pops up but it's blank. When I close the window "My Favourite number: 7" pops up briefly.

Any help would be appreciated.

Pahl


edit

I tried this test again and was a little more lucky. I entered everything exactly the same but this time the box opens and "My favorite number: 7" pops up but the window doesnt stay open. Is that suppose to happen? I added in MOUSEWAIT and that fixed it but am not sure wether the box was supposed to stay open without it.

Synthetic

If you would like to keep the window open just make the program run a loop:


loop = 1

while loop = 1
LET a$="My"
LET b$="favourite number:"
LET c= 7
LET c$=a$ + " " + b$ + " : " + c
PRINT c$,0,20
SHOWSCREEN
wend

This will keep the program running until variable loop doesn't equal 1.
"Impossible is a word people use to make themselves feel better when they quit."

My AMXMODX plugins for Day of Defeat 1.3 can be found here.

Pahl

ahh cool, thanx. =)

Pahl

IceBlueLens

What Tutorial??

Synthetic

There are some tutorials in the help file. :)

Not to mention some sample code in the \Projects\Samples folder of your GLBasic install directory.
"Impossible is a word people use to make themselves feel better when they quit."

My AMXMODX plugins for Day of Defeat 1.3 can be found here.