errors
#1

function "OnPlayerSpawn" is not implemented



what does that mean?
Reply
#2

Can you show us your code?
Reply
#3

PHP код:
public OnPlayerSpawn(playerid)
{
  
SetPlayerToTeamColour(playerid)
  {
    if(
gTeam[playerid] == GANG_GROVE)
    {
       
SetPlayerColor(playeridGANG_GROVE_COLOUR);
    }
    if(
gTeam[playerid] == GANG_BALLAS)
    {
       
SetPlayerColor(playeridGANG_BALLAS_COLOUR);
    }
    if(
gTeam[playerid] == GANG_VAGOS)
    {
       
SetPlayerColor(playeridGANG_VAGOS_COLOUR);
    }
    if(
gTeam[playerid] == GANG_AZTECAS)
    {
       
SetPlayerColor(playeridGANG_AZTECAS_COLOUR);
    }
    if(
gTeam[playerid] == GANG_TRIADS)
    {
       
SetPlayerColor(playeridGANG_TRIADS_COLOUR);
    }
    if(
gTeam[playerid] == GANG_ITALIAN_MAFIA)
    {
       
SetPlayerColor(playeridGANG_ITALIAN_MAFIA_COLOUR);
    }
    return 
1;

Reply
#4

Do you have the include a_samp included?
Reply
#5

Quote:
Originally Posted by Glossy42O
Посмотреть сообщение
PHP код:
public OnPlayerSpawn(playerid)
{
  
SetPlayerToTeamColour(playerid)
  {
    if(
gTeam[playerid] == GANG_GROVE)
    {
       
SetPlayerColor(playeridGANG_GROVE_COLOUR);
    }
    if(
gTeam[playerid] == GANG_BALLAS)
    {
       
SetPlayerColor(playeridGANG_BALLAS_COLOUR);
    }
    if(
gTeam[playerid] == GANG_VAGOS)
    {
       
SetPlayerColor(playeridGANG_VAGOS_COLOUR);
    }
    if(
gTeam[playerid] == GANG_AZTECAS)
    {
       
SetPlayerColor(playeridGANG_AZTECAS_COLOUR);
    }
    if(
gTeam[playerid] == GANG_TRIADS)
    {
       
SetPlayerColor(playeridGANG_TRIADS_COLOUR);
    }
    if(
gTeam[playerid] == GANG_ITALIAN_MAFIA)
    {
       
SetPlayerColor(playeridGANG_ITALIAN_MAFIA_COLOUR);
    }
    return 
1;

Код:
public OnPlayerSpawn(playerid)
{
  SetPlayerToTeamColour(playerid)
  {
	if(gTeam[playerid] == GANG_GROVE)
	{
	   SetPlayerColor(playerid, GANG_GROVE_COLOUR);
	}
	if(gTeam[playerid] == GANG_BALLAS)
	{
	   SetPlayerColor(playerid, GANG_BALLAS_COLOUR);
	}
	if(gTeam[playerid] == GANG_VAGOS)
	{
	   SetPlayerColor(playerid, GANG_VAGOS_COLOUR);
	}
	if(gTeam[playerid] == GANG_AZTECAS)
	{
	   SetPlayerColor(playerid, GANG_AZTECAS_COLOUR);
	}
	if(gTeam[playerid] == GANG_TRIADS)
	{
	   SetPlayerColor(playerid, GANG_TRIADS_COLOUR);
	}
	if(gTeam[playerid] == GANG_ITALIAN_MAFIA)
	{
	   SetPlayerColor(playerid, GANG_ITALIAN_MAFIA_COLOUR);
	}
    return 1;
}
   return 1;
}
Reply
#6

Removed.
Reply
#7

Quote:
Originally Posted by PT
Посмотреть сообщение
Do you have the include a_samp included?
yep.
Reply
#8

Removed.
Reply
#9

Код:
public OnPlayerSpawn(playerid)
{
  SetPlayerToTeamColour(playerid)
  {
    if(gTeam[playerid] == GANG_GROVE)
    {
       SetPlayerColor(playerid, GANG_GROVE_COLOUR);
    }
    if(gTeam[playerid] == GANG_BALLAS)
    {
       SetPlayerColor(playerid, GANG_BALLAS_COLOUR);
    }
    if(gTeam[playerid] == GANG_VAGOS)
    {
       SetPlayerColor(playerid, GANG_VAGOS_COLOUR);
    }
    if(gTeam[playerid] == GANG_AZTECAS)
    {
       SetPlayerColor(playerid, GANG_AZTECAS_COLOUR);
    }
    if(gTeam[playerid] == GANG_TRIADS)
    {
       SetPlayerColor(playerid, GANG_TRIADS_COLOUR);
    }
    if(gTeam[playerid] == GANG_ITALIAN_MAFIA)
    {
       SetPlayerColor(playerid, GANG_ITALIAN_MAFIA_COLOUR);
    }
    return 1;
}
Seems to me like you have one bracket more that you should have.
Reply
#10

C:\Users\yan\Desktop\LS-GW\gamemodes\kkk.pwn(206) : warning 225: unreachable code
C:\Users\yan\Desktop\LS-GW\gamemodes\kkk.pwn(206) : warning 217: loose indentation
C:\Users\yan\Desktop\LS-GW\gamemodes\kkk.pwn(206) : error 029: invalid expression, assumed zero
C:\Users\yan\Desktop\LS-GW\gamemodes\kkk.pwn(206) : error 004: function "OnPlayerSpawn" is not implemented
C:\Users\yan\Desktop\LS-GW\gamemodes\kkk.pwn(20 : error 017: undefined symbol "SetPlayerToTeamColour"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)