Um, it didn't work. Is the code in the wrong place? Here's the whole thing:

Code:

var video_mode= 8;
var video_screen= 1;
var video_depth= 32;

var walk_speed;
var breath_speed;
var jump_speed;
var run_speed;
var mouseSensitivity= 10;
var mouseInvert= 1;

var items;


string level_wmb= <weird_room.wmb>;

string racer_mdl= "racer1new.mdl";
string earth_mdl= "earth_distort.mdl";
string sprite_pcx= "wroom_side.pcx";
string char= "char.mdl";
string dragrcr_mdl= "drgrcr.mdl";

sound duh_wav= "the_duhds.wav";
sound morph_wav= "morph.wav";
sound tada= "tada.wav";

bmap side_pcx= "wroom_side.pcx";
bmap other_side_pcx= "wroom_side2.pcx";
bmap congrats_pcx= "congrats.pcx";

function play_duh_snd()
{
snd_play (duh_wav,100,0);
}

function main()
{
level_load (level_wmb);
wait(3);
on_d= play_duh_snd;
mouse_look();
}

function item_event
{
if(event_type == event_entity) && (you == player)
{
items= items + 1;
ent_remove(me);
}
}

action item_action1
{
my.enable_entity = on;
my.event = item_event;
while(me)
{
my.pan += 4 * time_step;
wait(1);
}
}

action item_action2
{
my.enable_entity = on;
my.event = item_event;
while(me)
{
my.pan += 4 * time_step;
wait(1);
}
}

action item_action3
{
my.enable_entity = on;
my.event = item_event;
while(me)
{
my.pan += 4 * time_step;
wait(1);
}
}

action rotate
{
while(1)
{
my.pan+= 1 * time_step;
wait(1);
}
}

action morpher
{
player= me;
my.enable_entity= on;
my.fat= on;
my.narrow= on;
c_setminmax(my);
while(1)
{
if(key_t== on)
{
c_move(my,vector(6 * time_step,0,0),nullvector,glide);
ent_animate(my,"walk",walk_speed,anm_cycle);
walk_speed+= 7 * time_step;
}
else
{
ent_animate(my,"stand",breath_speed,anm_cycle);
breath_speed+= 3 * time_step;
}
if(key_g== on)
{
c_move(my,vector(-6 * time_step,0,0),nullvector,glide);
ent_animate(my,"walk",walk_speed,anm_cycle);
walk_speed+= -7 * time_step;
}
if(key_f== on)
{
my.pan+= 10 * time_step;
}
if(key_h== on)
{
my.pan-= 10 * time_step;
}
if(mouse_left== on)
{
c_move(my,nullvector,vector(0,0,15 * time_step),glide);
ent_animate(my,"jump",jump_speed,anm_cycle);
jump_speed+= 14 * time_step;
}
else
{
c_move (my,nullvector,vector(0,0,-15 * time_step),glide);
}
if(key_m== on)
{
snd_play (morph_wav,100,0);
wait(-1);
ent_morph (my,racer_mdl);
wait(-1);
ent_morph (my,earth_mdl);
wait(-1);
ent_morph (my,dragrcr_mdl);
wait(-1);
ent_morph (my,sprite_pcx);
wait(-1);
ent_morph (my,char);
wait(1);
my.pan= 0;
}
if(mouse_right== on) && (key_t== on)
{
c_move(my,vector(10 * time_step,0,0),nullvector,glide);
ent_animate(my,"run",run_speed,anm_cycle);
run_speed+= 9 * time_step;
}
wait(1);
}
}

action platform_rotate
{
while(1)
{
if(event_type== event_entity)
{
my.pan+= 2 * time_step;
}
wait(1);
}
}

panel side_pan
{
pos_x= 0;
pos_y= 640;
bmap= side_pcx;
alpha= 100;
flags= visible, overlay, filter, transparent;
}

panel other_side_pan
{
pos_x= 740;
pos_y= 640;
bmap= other_side_pcx;
alpha= 100;
flags= visible, overlay, filter, transparent;
}

panel end_game
{
pos_x= 320;
pos_y= 240;
bmap= congrats_pcx;
alpha= 100;
flags= overlay, filter, transparent;
}

function success()
{
while(1)
{
side_pan.alpha-= 1 * time_step;
if(side_pan.alpha<= 0)
{
side_pan.visible= off;
}
other_side_pan.alpha-= 1 * time_step;
if(other_side_pan.alpha<= 0)
{
other_side_pan.visible= off;
}
end_game.alpha+= 1 * time_step;
wait(1);
snd_play(tada,100,0);
wait(1);
}
}

function score_tracker()
{
if(items== 3)
{
success();
}
}

function mouse_look()
{
while(1)
{
camera.pan-= mouse_force.x * mouseSensitivity * time_step;
camera.tilt+= mouse_force.y * mouseSensitivity * mouseInvert * time_step;
wait(1);
}
}




Code:
void main()
{
    cout << "I am MrCode,";
    cout << "hear me roar!";
    system("PAUSE");
}