C:\Documents and Settings\Lindvall\Mina dokument\Mina mottagna filer\QKDM.pwn(336) : warning 203: symbol is never used: "SetPlayerTeamFromClass"
pawn Код:
SetPlayerTeamFromClass(playerid, classid)
{
if(classid == 0)
{
gTeam[playerid] = TEAM_MAFIA;
GameTextForPlayer(playerid, "Mafia", 2000, 5);
}
else if(classid == 1)
{
gTeam[playerid] = TEAM_POLICE;
GameTextForPlayer(playerid, "Police", 2000, 5);
}
else if(classid == 2)
{
gTeam[playerid] = TEAM_GROVE;
GameTextForPlayer(playerid, "Grove", 2000, 5);
}
else if(classid == 3)
{
gTeam[playerid] = TEAM_BALLAS;
GameTextForPlayer(playerid, "Ballas", 2000, 5);
}
else if(classid == 4)
{
gTeam[playerid] = TEAM_BIKERS;
GameTextForPlayer(playerid, "Bikers", 2000, 5);
}
return 1;
}
//------------------------------------------------------------------------------
SetPlayerToTeamColor(playerid)
{
if(gTeam[playerid] == TEAM_MAFIA)
{
SetPlayerColor(playerid, COLOR_MAFIA);
}
else if(gTeam[playerid] == TEAM_POLICE)
{
SetPlayerColor(playerid, POLICE_COLOR);
}
else if(gTeam[playerid] == TEAM_GROVE)
{
SetPlayerColor(playerid, GROVE_COLOR);
}
else if(gTeam[playerid] == TEAM_BALLAS)
{
SetPlayerColor(playerid, BALLAS_COLOR);
}
else if(gTeam[playerid] == TEAM_BIKERS)
{
SetPlayerColor(playerid, BIKERS_COLOR);
}
}
You're never using the function 'SetPlayerTeamFromClass'. Either use it in your script or put 'stock' and a space behind it.