Error message?

Previous topic - Next topic

augustus

I just recieved this error message attempting to compile a project:

compiling:
C:\Users\_____\AppData\Local\Temp\glbasic\gpc_temp0.cpp:90:9: invalid digit "8" in octal constant
*** FATAL ERROR - Please post this output in the forum

I narrowed the error down to the line 'IF KEY(08)'. I have no idea what is going wrong, and if I use KEY(10) it works fine. Only KEY(08) and (09) seem to cause issues. Can someone tell me what on earth is wrong?

Moru

That's interesting, seems zero is the character to set before a number to make an octal number (0 - 7 instead of 0 - 9). Just remove the zero before the eight and it will work fine. Not sure if this is supposed to be like this?