#2

Quote:
Originally Posted by Trollerz
Посмотреть сообщение
Код:
C:\Users\Administrator\Desktop\AHAD AMAN SAMP WORK\gamemodes\working.pwn(73) : error 017: undefined symbol "SetPlayerToTeamColor"
C:\Users\Administrator\Desktop\AHAD AMAN SAMP WORK\gamemodes\working.pwn(74) : error 001: expected token: ";", but found "if"
C:\Users\Administrator\Desktop\AHAD AMAN SAMP WORK\gamemodes\working.pwn(74) : error 017: undefined symbol "gTeam"
C:\Users\Administrator\Desktop\AHAD AMAN SAMP WORK\gamemodes\working.pwn(74) : warning 215: expression has no effect
C:\Users\Administrator\Desktop\AHAD AMAN SAMP WORK\gamemodes\working.pwn(74) : error 001: expected token: ";", but found "]"
C:\Users\Administrator\Desktop\AHAD AMAN SAMP WORK\gamemodes\working.pwn(74) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.

Код:
public OnPlayerSpawn(playerid)
{
  SetPlayerToTeamColor(playerid)
  if (gTeam[playerid] == TEAM_GROVE)
  {
		SetPlayerColor(playerid, TEAM_GROVE_COLOR);
	}
	else if (gTeam[playerid] == TEAM_BALLA)
	{
		SetPlayerColor(playerid, TEAM_BALLA_COLOR);
	}
	return 1;
}
PHP код:
public OnPlayerSpawn(playerid)
{
  
SetPlayerToTeamColor(playerid);
  if (
gTeam[playerid] == TEAM_GROVE)
  {
        
SetPlayerColor(playeridTEAM_GROVE_COLOR);
    }
    else if (
gTeam[playerid] == TEAM_BALLA)
    {
        
SetPlayerColor(playeridTEAM_BALLA_COLOR);
    }
    return 
1;

Reply


Messages In This Thread
Help - by Trollerz - 28.08.2015, 16:14
Re: Help - by Logofero - 28.08.2015, 16:15
Re: Help - by Trollerz - 28.08.2015, 16:22
Re: Help - by Gazzy - 28.08.2015, 16:23
Re: Help - by Logofero - 28.08.2015, 16:25
Re: Help - by Trollerz - 28.08.2015, 16:28
Re: Help - by Logofero - 28.08.2015, 16:30
Re: Help - by Gazzy - 28.08.2015, 16:31
Re: Help - by Trollerz - 28.08.2015, 16:32
Re: Help - by Gazzy - 28.08.2015, 16:34

Forum Jump:


Users browsing this thread: 3 Guest(s)