Help, please
#9

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:
pawn Код:
if(gTeam[playerid] == TEAM_BLUE || gTeam[playerid] == TEAM_GREEN)
Also, a curly bracket starts or ends a scope. You cannot use the else keyword if you have not closed the last scope.
pawn Код:
if(Checkpoint)
{
    // this scope
else // <-- invalid!
{
You need to use a closing bracket first!
pawn Код:
if(Checkpoint)
{
    // code
}
else
{
    // code
}
Reply


Messages In This Thread
Help, please - by Setkus - 03.02.2012, 15:38
Re: Help, please - by MP2 - 03.02.2012, 15:41
Re: Help, please - by T0pAz - 03.02.2012, 15:43
Re: Help, please - by Setkus - 03.02.2012, 15:44
Re: Help, please - by Konstantinos - 03.02.2012, 15:45
Re: Help, please - by T0pAz - 03.02.2012, 15:45
Re: Help, please - by Setkus - 03.02.2012, 15:47
Re: Help, please - by T0pAz - 03.02.2012, 15:48
Re: Help, please - by AndreT - 03.02.2012, 15:49
Re: Help, please - by Setkus - 03.02.2012, 15:53

Forum Jump:


Users browsing this thread: 3 Guest(s)