When i execute my code i get a bunch of syntax errors, any help?
Code:
define health,skill1;
define ammo,skill2;
define maxammo,skill3;
define weaponid,skill4;
define maxweapon, skill5; //to tell whats the max weapon id user has
//player1
action player1 {
while {
player = my;
me = player;
my.health = 100;
my.ammo = 32;
my.weaponid = 1;
my.maxweapon = 1;
if (my.health=>100)
{
my.health=100;
}
if (my.ammo =<1)
{
reload();
}
if (my.weaponid==1)
{
my.maxammo = 32;
}
function reload ()
{
my.ammo = my.maxammo;
}
}
if (key_w==1)
{
ent_move(1,0);
ent_animate(me,"run",NULL,NULL);
}
}