03.02.2012, 15:49
There's some stuff you still need to learn about PAWN and coding in general as it seems. First of all, if statements do not work like that, a working use would be:
Also, a curly bracket starts or ends a scope. You cannot use the else keyword if you have not closed the last scope.
You need to use a closing bracket first!
pawn Код:
if(gTeam[playerid] == TEAM_BLUE || gTeam[playerid] == TEAM_GREEN)
pawn Код:
if(Checkpoint)
{
// this scope
else // <-- invalid!
{
pawn Код:
if(Checkpoint)
{
// code
}
else
{
// code
}