Code:

#include <default.c>
#include <acknex.h>

var panAtStart = 0;

function main()
{
level_load("level.wmb");
video_set(1440, 900, 32, 1); //Video Settings
wait(1);

if(panAtStart == 0)
{
wait(1);
}
}



I have no Problems with this...

Have you included default.c and acknex.h?
Or perhaps you have forgotten a semicolon at the upper line!?!?

When not: can you post a bigger part of the code?