Hallo,
dieser befehl soll mir anzeigen wer alles leader ist aber eskommt inpawno immer fehler
if(strcmp(cmdtext,"/DBleader", true) == 0)
{
new playa = playerid , leaderq[255], Name[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name, MAX_PLAYER_NAME);
if( PlayerInfo[playa][pAdmin] >= 1339 )
{
format(leaderq, sizeof(leaderq), "SELECT Name , Leader FROM accounts WHERE Leader > 0 ORDER BY `Leader`;");
mysql_query(leaderq);
SCM(playa, COLOR_YELLOW , " %s : %s ", fraktionlangName, name); //(42024) : error 076: syntax error in the expression, or invalid function call
}
}
stock fraktionlangName(frakid)
{
new frakname[64];
switch(frakid)
{
case 0:{frakname="Keine";}
case 1:{frakname="Police LS";}
case 2:{frakname="Police SF";}
case 3:{frakname="GSG 9";}
case 4:{frakname="Sanitäter";}
case 5:{frakname="La Cosa Nostra";}
case 6:{frakname="Yakuza";}
case 7:{frakname="Präsident";}
case 8:{frakname="Hitman";}
case 9:{frakname="BWN";}
case 10:{frakname="Army";}
case 11:{frakname="Fahrschule";}
case 12:{frakname="Hells Angels";}
case 13:{frakname="Grove Street";}
case 14:{frakname="Ballas Family";}
case 15:{frakname="Wheelman";}
case 16:{frakname="L.S.Vagos";}
case 17:{frakname="L.V.Aztecas";}
case 18:{frakname="L.V.Rifa";}
case 19:{frakname="2F2F";}
case 20:{frakname="Terror";}
case 21:{frakname="F.B.I";}
case 22:{frakname="Feuerwehr";}
case 23:{frakname="Error:19 [Einen Admin Melden]";}
case 24:{frakname="Oamt";}
default: {frakname="ERROR";}
}
return frakname;
}