2 Compling Errors
#2

Well for starters missing opening { and closing } for the OnPlayerSpawn
pawn Код:
public OnPlayerSpawn(playerid)
{
  SetPlayerInterior(playerid,0);
  if(gTeam[playerid] == TEAM_GREEN)
  {
    SetPlayerColor(playerid,0x33AA33AA); // green
    GameTextForPlayer(playerid,"~g~Let the fight begin",3000,5);
  }
  else if(gTeam[playerid] == TEAM_BLUE)
  {
    GameTextForPlayer(playerid,"~b~Let the fight begin",3000,5);
    SetPlayerColor(playerid,0x3333AAAA); // blue
  }
}
Do you have this at the top of your script under the #defines
pawn Код:
new gTeam[MAX_PLAYERS];
Are you assigning gTeam[playerid] a variable in your script.
Reply


Messages In This Thread
2 Compling Errors - by acade - 31.01.2009, 22:23
Re: 2 Compling Errors - by ShizNator - 31.01.2009, 22:48
Re: 2 Compling Errors - by acade - 31.01.2009, 23:04
Re: 2 Compling Errors - by acade - 01.02.2009, 01:35
Re: 2 Compling Errors - by flames - 01.02.2009, 06:55
Re: 2 Compling Errors - by acade - 01.02.2009, 11:40
Re: 2 Compling Errors - by MenaceX^ - 01.02.2009, 11:51
Re: 2 Compling Errors - by acade - 01.02.2009, 12:38
Re: 2 Compling Errors - by LarzI - 01.02.2009, 12:41
Re: 2 Compling Errors - by acade - 01.02.2009, 12:55

Forum Jump:


Users browsing this thread: 4 Guest(s)