#define TEAM_Aztecas 0
#define TEAM_Triads 1
#define TEAM_Vagos 2
SetPlayerClass(playerid, classid) {
if(classid == 115) {
gTeam[playerid] = Team_Aztecas;
} else if(classid == 126) {
gTeam[playerid] = Team_Triads;
} else if(classid == 2) {
gTeam[playerid] = Team_Vagos;
}
}
public OnPlayerSpawn(playerid)
{
//GivePlayerMoney(playerid, PocketMoney);
SetPlayerInterior(playerid,0);
if(gTeam[playerid] == Team_Aztecas) {
SetPlayerColor(playerid,TEAM_AZTECAS_COLOR); // Aztecas
}
else if(gTeam[playerid] == Team_Triads) {
SetPlayerColor(playerid,COLOR_BLUE); // Triaden
}
else if(gTeam[playerid] == Team_Vagos) {
SetPlayerColor(playerid,COLOR_YELLOW); // Vagos
}
//SetPlayerRandomSpawn(playerid);
TogglePlayerClock(playerid,1);
return 1;
}
Die Errors:
error 017: undefined symbol "Team_Aztecas"
error 017: undefined symbol "Team_Triads"
error 017: undefined symbol "Team_Vagos"
die sind überall wo das Wort vorkommt.
Bitte um Hilfe,
Firefox