PDA

View Full Version : Really silly thing.. =/



MuteClown
17-03-2011, 04:50 PM
Atm im so brain dead, trying to figure out a few things on OpenGL. I went and started a new source file, after couple of hours putting things into place im getting a stupid error on all my IF and CASE statements that use a structure or class. I think its the dot notation, but for the life of me i can think why =/

I.E


case keysym.sym of
SDLK_ESCAPE: Term();

error:



Free Pascal Compiler version 2.2.4 [2009/10/25] for i386
Copyright (c) 1993-2008 by Florian Klaempfl
Target OS: Win32 for i386
Compiling n.pas
Compiling lib\dglOpenGL.pas
n.pas(191,14) Error: Illegal qualifier
n.pas(191,14) Error: Ordinal expression expected
n.pas(191,14) Fatal: Syntax error, "OF" expected but "identifier SYM" found

MuteClown
17-03-2011, 06:34 PM
nvm, forgot the '^'
*sigh*

maybe i should of put that '^' on my head for a dunce hat :/

Traveler
17-03-2011, 08:42 PM
That's okay. Sometimes all you need is a little time off just to spot the problem/solution yourself.