I don't understand what is going on here. I am following the manual and don't understand why
I am getting errors.
I used this code:
if (key_p) & (freeze_mode == 0)
{
freeze_mode = 1;
}
...and got the error:
Error in 'MAIN' line 100: syntax error
< [][]{ >
Earlier I had tried:
//The PATH keyword gives directories where template files can be found.
PATH "C:\Program Files\GStudio7\projects\test";
PATH "C:\Program Files\GStudio7\projects\test\templates\code";
PATH "C:\Program Files\GStudio7\projects\test\templates\images";
PATH "C:\Program Files\GStudio7\projects\test\templates\sounds";
PATH "C:\Program Files\GStudio7\projects\test\templates\models";
and got this error:
Error in 'MAIN' line 8: 'PATH' undeclared identifier
I also tried:
// Function for toggling pause mode
function pauseGame()
{
freeze_mode = 1;
freeze_mode %= 2; // two switches
}
on_p = pauseGame;
...and nothing happens.
Could someone please help me with what is wrong?