Habe das problem
if(strcmp(cmd, "/ao", true) == 0 || strcmp(cmd, "/ai", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 1)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_RED, "Benutze: (/a)dmin [admin chat]");
return 1;
}
if(PlayerInfo[playerid][pAdmin] == 1 || PlayerInfo[playerid][pAdmin] == 2 || PlayerInfo[playerid][pAdmin] == 3)
{
format(string, sizeof(string),"Supporter %s: %s", sendername, result);
}
else if(PlayerInfo[playerid][pAdmin] == 4 || PlayerInfo[playerid][pAdmin] == 5)
{
format(string, sizeof(string),"Administrator %s: %s", sendername, result);
}
else if(PlayerInfo[playerid][pAdmin] == 1338)
{
format(string, sizeof(string), "Communityleiter %s: %s", sendername, result);
}
else if(PlayerInfo[playerid][pAdmin] == 2000)
{
format(string, sizeof(string), "Communitygründer %s: %s", sendername, result);
}
if (PlayerInfo[playerid][pAdmin] >= 1)
{
SendAdminMessage(0xFF00A5FF, string);
}
printf("Admin %s: %s", sendername, result);
} else {
SendClientMessage(playerid, COLOR_GRAD1, " Du darfst diesen Befehl nicht benutzen !");
}
}
return 1;
}
diese befehl sollte eine nachricht an den server schicken womit es alles lesen könne
ingame kommt zwar eine neue zeile bleibt aber unsichtbar könnt ihr mir da helfen lg sunny