Code issue...
Posted: Mon May 07, 2007 12:46 am
can anyone tell me why i get the
Error line 25: expected ;
for this code...
if (shield == 0)
{
CreateTimer("Event Actor", "attack1", 500);
if (pd == 1)
{
ChangeAnimation("Event Actor", "player right attack - 1bp", FORWARD);
attack = 3;
}
else if (pd == 2)
{
ChangeAnimation("Event Actor", "player left attack - 1bp", FORWARD);
attack = 4;
}
else if (pd == 5)
{
ChangeAnimation("Event Actor", "player right swipe - 1bp", FORWARD);
attack = 1;
}
else if (pd == 6)
{
ChangeAnimation("Event Actor", "player left swipe - 1bp", FORWARD)
attack = 2;
}
}
else if (shield == 1)
{
if (pd == 5)
{
ChangeAnimation("Event Actor", "player right shield - 1bp", FORWARD);
}
else if (pd == 6)
{
ChangeAnimation("Event Actor", "player left shield - 1bp", FORWARD);
}
}
thx guyes, i am reallty stumped, this is a big code
Error line 25: expected ;
for this code...
if (shield == 0)
{
CreateTimer("Event Actor", "attack1", 500);
if (pd == 1)
{
ChangeAnimation("Event Actor", "player right attack - 1bp", FORWARD);
attack = 3;
}
else if (pd == 2)
{
ChangeAnimation("Event Actor", "player left attack - 1bp", FORWARD);
attack = 4;
}
else if (pd == 5)
{
ChangeAnimation("Event Actor", "player right swipe - 1bp", FORWARD);
attack = 1;
}
else if (pd == 6)
{
ChangeAnimation("Event Actor", "player left swipe - 1bp", FORWARD)
attack = 2;
}
}
else if (shield == 1)
{
if (pd == 5)
{
ChangeAnimation("Event Actor", "player right shield - 1bp", FORWARD);
}
else if (pd == 6)
{
ChangeAnimation("Event Actor", "player left shield - 1bp", FORWARD);
}
}
thx guyes, i am reallty stumped, this is a big code