Nabend,
Habe ein Problem in meinem /d chat. Jeder kann diesen Lesen. Vllt nur ein kleiner Dummer Fehler aber ich finde ihn nicht :o
dcmd_d(playerid,params[])
{
if(PlayerInfo[playerid][Leader] == 1 || PlayerInfo[playerid][Leader] == 4 || PlayerInfo[playerid][Leader] == 5)
{
new message[128];
if(sscanf(params, "s", message))
{
return SendClientMessage(playerid,COLOR_LIGHTRED, "/d(epartment) [Text]");
}
new text[128];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(text, sizeof(text), "**((%s: %s ))**", name, message);
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(PlayerInfo[playerid][Leader] == 1 || PlayerInfo[playerid][Leader] == 4 || PlayerInfo[playerid][Leader] == 5)
{
SendClientMessage(i,COLOR_LIGHTRED,text);
}
}
}
else
{
SendClientMessage(playerid,COLOR_GRAD2,"Du bist in keinem Unternehmen.");
return 1;
}
return 1;
}