Undefined symbol: "SetPlayerToTeamColour"
#1

Hey, I've got an error while setting up teams for a gang war gamemode, It's undefined symbol, And i can't find a define for it, I got the teams setting up from a tutorial, It's not saying anything about SetPlayerToTeamColour.

Any help please? :'$
Reply
#2

it's not a samp function. You have to create it manually.

like this. but remember to define teams and colors
pawn Код:
forward SetPlayerToTeamColour(playerid);
public SetPlayerToTeamColour(playerid)
{
    if(gTeam[playerid] == TEAM_1)
    {
        SetPlayerColor(playerid,TEAM_1_COLOR);
    }
    if(gTeam[playerid] == TEAM_2)
    {
        SetPlayerColor(playerid,TEAM_2_COLOR);
    }
    if(gTeam[playerid] == TEAM_3)
    {
        SetPlayerColor(playerid,TEAM_3_COLOR);
    }
    if(gTeam[playerid] == TEAM_4)
    {
        SetPlayerColor(playerid,TEAM_4_COLOR);
    }
   
    return 1;
}
Reply
#3

Quote:
Originally Posted by Jewell
Посмотреть сообщение
it's not a samp function. You have to create it manually.

like this. but remember to define teams and colors
pawn Код:
forward SetPlayerToTeamColour(playerid);
public SetPlayerToTeamColour(playerid)
{
    if(gTeam[playerid] == TEAM_1)
    {
        SetPlayerColor(playerid,TEAM_1_COLOR);
    }
    if(gTeam[playerid] == TEAM_2)
    {
        SetPlayerColor(playerid,TEAM_2_COLOR);
    }
    if(gTeam[playerid] == TEAM_3)
    {
        SetPlayerColor(playerid,TEAM_3_COLOR);
    }
    if(gTeam[playerid] == TEAM_4)
    {
        SetPlayerColor(playerid,TEAM_4_COLOR);
    }
   
    return 1;
}
Thanks, Worked
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)