05.02.2012, 16:56
Nevermind.
Can you try this?
Now, choose different teams and spawn, check whether the team ids print out correctly.
Why I say this is because the if statement seems to reach the last one, which means the team id isn't being assigned correctly.
Can you try this?
pawn Код:
public OnPlayerSpawn(playerid)
{
printf("Player(%i)'s team id: %i", Teams[playerid]); //<--- Add this line:
//Other...
}
Why I say this is because the if statement seems to reach the last one, which means the team id isn't being assigned correctly.