ich habe keine ahnung wo der Fehler ist bitte um hilfe
if(strcmp(cmd, "/clearchat", true) == 0)
{
if (IsPlayerAdmin(playerid) == 1)
{
{
for (new a=1;a<=10;a++)
{
// Clearchat v2.49 by mR_FatJoe <3
SendClientMessageToAll(0, "\n");
SendClientMessageToAll(0, "\n");
SendClientMessageToAll(0, "\n");
SendClientMessageToAll(0, "\n");
SendClientMessageToAll(0, "\n");
GameTextForAll("Chat cleared!",6000,1);
}
new Player[MAX_PLAYER_NAME];
GetPlayerName(playerid,Player,sizeof(Player));
{
format(string, sizeof(string), "*** Administrator %s clearte den Chat ***",Player);
SendClientMessageToAll(0, "\n");
printf(string);
}
}
}
else
{
SendClientMessage(playerid,0, "\n", "Du Bist Kein Admin oO!");
}
return 1;
}