30.07.2015, 16:09
function "OnPlayerSpawn" is not implemented
what does that mean?
what does that mean?
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;
}
PHP код:
|
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; }
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; }