Thanks.
i just got one last error now.

i get a crash error when i run the the game.
Error E1513 player_actions

so i better post my script this one is a bit tricky for me.
#include <acknex.h>
#include <default.c>


var walk_percentage; //anmation percent
var can_walk = 1; //the player can move
var distance_to_ground; // the distance between player's origin and the ground not yet used
VECTOR* temp;
VECTOR* distance_check;
VECTOR* fall_speed;

function main()
{
video_switch(7,0,0); // set full screen and 800/600 with no depth change
fps_max = 200; //set the frame rate this way game will run the same on all pc's
level_load("Project1.wmb"); //load the level
wait(2); // wait until the level is loaded
camera.tilt = -12;//set camera tilt
}


action player_actions() //player action
{
set(my,SHADOW); //shadow on
while(1) //loop
{
if (can_walk == 1) // if you can walk
{
vec_set(temp.x,player.x);//set temp to be equal to gplayer
vec_set(camera,vector(temp.x-200,temp.y,player.z+50));//set camera to follow
vec_set(distance_check,player.x); //distance_check = gplayer
distance_check.z -= 5000; //set 5000 quants below player's origin
distance_to_ground = c_trace (player.x, distance_check.x, IGNORE_ME | USE_BOX);
fall_speed.z = - (distance_to_ground - 17); // 17 = experimental value
fall_speed.z = maxv (-20 * time_step, fall_speed.z); // 35 = falling speed
if (key_w) //if keyboard W is pressed move forward
{
c_move(my,vector(9.6* time_step,0,fall_speed.z),nullvector,GLIDE); //move
ent_animate(my, "walk", walk_percentage, ANM_CYCLE); // "walk" animation loop
walk_percentage += 12 * time_step; // 3 = animation speed for "walk"
}
else
{
c_move(my,vector(0,0,fall_speed.z),nullvector,GLIDE); //dont move but appy gravity
ent_animate(my, NULL, 0, 0); // reset all the animations
}

if (key_a) //if keyboard A is pressed pan + 2
{
my.pan+=8 * time_step; //if keyboard A is pressed pan + 2
}

if (key_d) //if keyboard A is pressed pan - 2
{
my.pan-=8 * time_step; //if keyboard A is pressed pan - 2
}

wait(1); //wait to next frame
}

}
}