I'm sorry if I sound like just another coder who forgot to do something simple and immediatly ran to these boards. I have been coding for some time now and have successfully made games involving functions and I do know exactly what they are ect...
My problem is I am making a simple GUI header file so that I can load it into programs. One of the simpler functions is to make a label. (P.S I know it doesn't work despite the error. I tried it on its own to see if that was the problem...). When I compile it, it spits out a message saying that it could not find structure ___ the reason I leave blanks is because the message changes if I modify the code even slightly.
I am not very proficient with 2-D. I have mostly been practicing 3-D
commands. So that could be the problem. I also had no idea how to set the function parameter color to a DWORD. Perhaps thats where I screwed up. Either way could one of you expert take a glance at my very tiny program and tell me what I might have done wrong?
`Label Test Code
INPUT "Hello, what would you like the label to say?", Message$
Label(100, 50, 200, 150, RGB(250, 250, 250), Message$)
Wait Key
FUNCTION Label(Width#, Height#, X#, Y#, Color AS DWORD, Message$)
INK Color, 0
Left# = Width#-(X#/2)
Right# = Width#+(X#/2)
Top# = Height#-(X#/2)
Bottom# = Height#+(X#/2)
Box Left#, Top#, Right#, Bottom#
Center Text X#, Y#, Message$
ENDFUNCTION
Thanks in advance.
"Damn had to remake account!" direct quotation from previous account.