Hallo Community kann mir einer sagen was ich falsch gemacht habe oder wie der code kleiner und weniger buggt ?
ich geb /admins ein und server sagt UNKNOWN Command
Hoffe mir kann einer helfen
Danke im vorraus
CODE:
CMD:admins(playerid,params[])
#pragma unused params
{
new Name[MAX_PLAYER_NAME],l1[1000], l2[1000], l3[1000], l4[1000], l5[1000], to[1000];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(Acc[i][Adminlevel] == 5)
{
GetPlayerName(i,Name,sizeof Name);
format(l5, sizeof l5,"%s\n%s (ID: %d)",l5,Name,i);
}
else if(Acc[i][Adminlevel] == 4)
{
GetPlayerName(i,Name,sizeof Name);
format(l4, sizeof l4,"%s\n%s (ID: %d)",l4,Name,i);
}
else if(Acc[i][Adminlevel] == 3)
{
GetPlayerName(i,Name,sizeof Name);
format(l3, sizeof l3,"%s\n%s (ID: %d)",l3,Name,i);
}
else if(Acc[i][Adminlevel] == 2)
{
GetPlayerName(i,Name,sizeof Name);
format(l2, sizeof l2,"%s\n%s (ID: %d)",l2,Name,i);
}
else if(Acc[i][Adminlevel] == 1)
{
GetPlayerName(i,Name,sizeof Name);
format(l1, sizeof l1,"%s\n%s (ID: %d)",l1,Name,i);
}
format(to,sizeof to,""RED"Serverleitung\n\n"ORANGE"%s\n\n"RED"Super Administratoren\n\n"ORANGE"%s\n\n"RED"Administratoren\n\n"ORANGE"%s\n\n"RED"Super Moderatoren\n\n"ORANGE"%s\n\n"RED"Moderatoren\n\n"ORANGE"%s\n\n"RED"Supporter\n\n"ORANGE"%s\n\n",l5,l4,l3,l2,l1);
ShowPlayerDialog(playerid,DIALOG_INFO,DIALOG_STYLE_MSGBOX,""RED"Online Admins",to,"Schliessen","");
}
return ShowPlayerDialog(playerid,DIALOG_INFO,DIALOG_STYLE_MSGBOX,""RED"Online Admins",to,"Schliessen","");
}