Hmm. The string displaying works on this code, but it won't work when I press space.

Click to reveal..
function pole_scanned()
{
while(1)
{
if(event_type == EVENT_SCAN)
{
poleclimbtxt.flags = VISIBLE|OUTLINE;
wait(1);
if(key_space == 1)
{
mountpole = 1;
if(mountpole == 1)
{
player.x = my.x+3;
player.y = my.y;
player.z = my.z;
wait(1);
}
}
}
if(!event_type == EVENT_SCAN)
wait(1);
{
poleclimbtxt.flags = OUTLINE;
cant_move();
wait(1);
}
}
}