Hi, ich habe 2 Fragen. 1. Ich verstehe nicht warum der Fraktionsname nicht angezeigt wird. Ich habe es so gemacht.
Ganz unten stock FrakName(playerid)
{
new fn[15];
if(gTeam[playerid] == TEAM_ZIVI) {fn = "Zivilist";}
else if(gTeam[playerid] == TEAM_COP) {fn = "Polizist";}
else if(gTeam[playerid] == TEAM_MEDIC) {fn = "Medic";}
else if(gTeam[playerid] == TEAM_ARMY) {fn = "Army";}
else if(gTeam[playerid] == TEAM_FBI) {fn = "FBI";}
else if(gTeam[playerid] == TEAM_GROVE) {fn = "GS";}
else if(gTeam[playerid] == TEAM_BALLAS) {fn = "Ballas";}
else if(gTeam[playerid] == TEAM_VAGOS) {fn = "Vagos";}
else if(gTeam[playerid] == TEAM_DNB) {fn = "Da Nang Boys";}
else if(gTeam[playerid] == TEAM_HITMAN) {fn = "Hitman";}
else if(gTeam[playerid] == TEAM_YAKUZA) {fn = "Yakuza";}
else if(gTeam[playerid] == TEAM_HA) {fn = "Hells Angels";}
else if(gTeam[playerid] == TEAM_LCN) {fn = "La Cosa Nostra";}
else if(gTeam[playerid] == TEAM_TERROR) {fn = "Terror";}
else if(gTeam[playerid] == TEAM_NEWS) {fn = "San News";}
else if(gTeam[playerid] == TEAM_FS) {fn = "Fahrschule";}
else if(gTeam[playerid] == TEAM_STAAT) {fn = "Staat";}
gTeam[playerid] = mysql_GetInt("accounts", "Fraktion", "Name", pInfo[playerid][pName]);
return 1;
}
und in dem Befehl: fn = FrakName(playerid);
also er wird angezeigt aber er zeigt den Adminlevelnamen an.
und 2. Kann man einen Button färben?