Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Okay...why doesn't this work?
#1
Okay...I would swear I saw this textout sub used this way, but I can't remember where...why doesn't this work?

Code:
'$include: 'allegro.bi'

dim username as string

username = "enqmovain"

allegro_init
set_gfx_mode(GFX_AUTODETECT_WINDOWED, 640, 480, 0, 0)
install_keyboard()

textout(screen, font, "Your username is " + str$(username), 320, 240, 10)

do
   if(*(@al_key+KEY_ESC) <> 0) then
      exit do
   end if
loop
allegro_exit()

Any help is appreciated.

Oh yeah, anyone know anything about documentation is coming along?

Thanks.
o time for the old in-out Love, I've just come to check the meter.
Reply
#2
The Str$ function is not needed; it's used to convert numeric types to strings. Besides, in FB, the $ suffix is no longer needed.
Reply
#3
Nice. Thanks for the help again.

Hope i'm not being too annoying with these stupid questions. Smile
o time for the old in-out Love, I've just come to check the meter.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)