/invite Problem

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • if(strcmp(cmd, "/invite", true) == 0)
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Benutzung: /invite [playerid/Name]");
    return 1;
    }
    new leader = PlayerInfo[playerid][pLeader];
    new para1 = ReturnUser(tmp);
    if(PlayerInfo[playerid][pLeader] >= 1 || PlayerInfo[playerid][pMember] >= 1 && PlayerInfo[playerid][pRank] >= 10)
    {
    if(IsPlayerConnected(para1))
    {
    if(para1 != INVALID_PLAYER_ID)
    {
    if (gTeam[para1]==TEAM_GREEN && PlayerInfo[para1][pMember] == 0 && PlayerInfo[para1][pFMember] == 255)
    {
    if(PlayerInfo[para1][pFrakSperre] == 0)
    {
    GetPlayerName(para1, giveplayer, sizeof(giveplayer));
    GetPlayerName(playerid, sendername, sizeof(sendername));
    printf("%s hat %s in die Fraktion %s eingeladen.", sendername, giveplayer,Fracs[leader-1]);
    format(string, sizeof(string), " Du wurdest in die Fraktion %s von Leader %s eingeladen.",Fracs[leader-1], sendername);
    SendClientMessage(para1, COLOR_LIGHTBLUE, string);
    format(string, sizeof(string), " Du hast %s in die Fraktion %s eingeladen.", giveplayer,Fracs[leader-1]);
    new istr[100];
    format(istr, sizeof(istr), "%s von der Fraktion %s möchte dich als Member aufnehmen.",sendername,Fracs[leader-1]);
    ShowPlayerDialog(para1,DIALOG_INVITE,DIALOG_STYLE_MSGBOX,"Fraktion's-Einladung",istr,"Annehmen","Ablehnen");
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    SendClientMessage(playerid, COLOR_GRAD2, " Der Spieler muss nun deine Einladung Annehmen oder Ablehnen.");
    new iyear, imonth,iday;
    getdate(iyear, imonth, iday);
    format(string, sizeof(string), "%s[Level:%d] wurde von %s in die Fraktion %s eingeladen (%d-%d-%d)", giveplayer,PlayerInfo[para1][pLevel],sendername,Fracs[leader-1],imonth,iday,iyear);
    MemberLog(string);
    Eingeladen[para1] = leader;
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " Dieser Spieler hat eine Fraktions-Sperre");
    return 1;
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " Dieser Spieler ist in einer anderen Fraktion oder bereits ein Fraktionsmitglied.");
    return 1;
    }
    }
    }//not connected
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, " Nur der (Co)Leader kann diesen Befehl nutzen!");
    }
    return 1;
    }


    Hallo ich hab ein Problem normal sollte der Rang 10 /invite nutzen können aber warum geht das nicht wen er es ein gibt kommt Unknow Coammad warum?

  • if(strcmp(cmd, "/family", true) == 0 [img]https://breadfish.de/wcf/images/smilies/tired.png[/img] strcmp(cmd, "/f", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pMuted] == 1)
    {
    SendClientMessage(playerid, TEAM_CYAN_COLOR, "Du kannst nicht sprechen, du wurdest gemutet!");
    return 1;
    }
    if(PlayerInfo[playerid][pGangJailed] == 1)
    {
    SendClientMessage(playerid, TEAM_CYAN_COLOR, "Du kannst nichts ins Familienchat schreiben!");
    return 1;
    }
    if(PlayerTied[playerid] == 1)
    {
    SendClientMessage(playerid, TEAM_CYAN_COLOR, "Du kannst nichts ins Familienchat schreiben!");
    return 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_GRAD2, "BENUTZUNG: (/f)amily [familien chat]");
    return 1;
    }
    new leader = PlayerInfo[playerid][pLeader];
    new member = PlayerInfo[playerid][pMember];
    if( (member >= 5 && member <= 24) [img]https://breadfish.de/wcf/images/smilies/tired.png[/img] (leader >= 5 && leader <= 24) )
    if(member != 7 && leader != 7)
    {
    if(member==1)
    {
    if(PlayerInfo[playerid][pRank] == 11) { format(string, sizeof(string), "**(( Chief of Police %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "**(( Deputy Chief %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "**(( Assistant Chief %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == [img]https://breadfish.de/wcf/images/smilies/cool.png[/img] { format(string, sizeof(string), "**(( Commander %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "**(( Sergeant %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "**(( Inspector %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "**(( Deputy Inspector %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "**(( Lead Officeer %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "**(( Deputy Lead Officer %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "**(( Officer %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "**(( Police Officer Trainee %s: %s ))**", sendername, result); }
    SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_Aztecas_COLOR, string);
    }
    else if(member==2)
    {
    if(PlayerInfo[playerid][pRank] == 11) { format(string, sizeof(string), "**(( FBI Director %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "**(( Deputy Director %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "**(( Chief of Staff %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == [img]https://breadfish.de/wcf/images/smilies/cool.png[/img] { format(string, sizeof(string), "**(( Special Agent in Charge %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "**(( Section Chief %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "**(( NSB Agent %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "**(( SFC Agent %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "**(( DEA Agent %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "**(( Senior Special Agent %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "**(( Special Agent %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "**(( Probationary Agent %s: %s ))**", sendername, result); }
    SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_Aztecas_COLOR, string);
    }
    else if(member==3)
    {
    if(PlayerInfo[playerid][pRank] == 11) { format(string, sizeof(string), "**(( Sheriff %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "**(( Stellv Cherif %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "**(( Agent %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == [img]https://breadfish.de/wcf/images/smilies/cool.png[/img] { format(string, sizeof(string), "**(( Elite-Trupp %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "**(( Ausbilder %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "**(( Unbesetzt %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "**(( Einweiser %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "**(( Einsatzleiter %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "**(( Urlauber %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "**(( Festangestellter %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "**(( Praktikant %s: %s ))**", sendername, result); }
    SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_Aztecas_COLOR, string);
    }
    else if(member==24)
    {
    if(PlayerInfo[playerid][pRank] == 11) { format(string, sizeof(string), "**(( Ordnungsamt Direktor %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "**(( Ordnungsamt Vizedirektor %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "**(( Ordnungsamt Ausbilder %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == [img]https://breadfish.de/wcf/images/smilies/cool.png[/img] { format(string, sizeof(string), "**(( Ordnungsamt Vorstand %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "**(( Ordnungshüter %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "**(( -Nicht vergeben- %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "**(( Ordnungsamt Kontrolleur %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "**(( Ordnungsamt Abschlepper %%s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "**(( Ordnungsamt Urlauber %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "**(( Ordnungsamt Lehrling %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "**(( Ordnungsamt Praktikant %s: %s ))**", sendername, result); }
    SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_Aztecas_COLOR, string);
    }
    else if(member==4)
    {
    if(PlayerInfo[playerid][pRank] == 11) { format(string, sizeof(string), "**(( Chefarzt %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "**(( Stellv. Chefarzt %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "**(( Leitender Oberarzt %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == [img]https://breadfish.de/wcf/images/smilies/cool.png[/img] { format(string, sizeof(string), "**(( Oberarzt %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "**(( Facharzt %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "**(( Leitender Notarzt %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "**(( Notarzt %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "**(( Rettungssanitäter %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "**(( Medizinstudent %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "**(( LSMD Urlauber %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "**(( LSMD Praktikant %s: %s ))**", sendername, result); }
    SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_Aztecas_COLOR, string);
    }
    else if(member==5)
    {
    if(PlayerInfo[playerid][pRank] == 11) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. )**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == [img]https://breadfish.de/wcf/images/smilies/cool.png[/img] { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. )**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_Aztecas_COLOR, string);
    }
    else if(member==6)//Anfang Yakuza
    {
    if(PlayerInfo[playerid][pRank] == 11) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. )**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == [img]https://breadfish.de/wcf/images/smilies/cool.png[/img] { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. )**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_Aztecas_COLOR, string);
    }//Ende Yakuza
    else if(member==8)
    {
    if(PlayerInfo[playerid][pRank] == 11) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. )**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == [img]https://breadfish.de/wcf/images/smilies/cool.png[/img] { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. )**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_Aztecas_COLOR, string);
    }
    else if(member==9)
    {
    if(PlayerInfo[playerid][pRank] == 11) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. )**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == [img]https://breadfish.de/wcf/images/smilies/cool.png[/img] { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. )**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_Aztecas_COLOR, string);
    }
    else if(member==10)
    {
    if(PlayerInfo[playerid][pRank] == 11) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. )**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == [img]https://breadfish.de/wcf/images/smilies/cool.png[/img] { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. )**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_Aztecas_COLOR, string);
    }
    else if(member==11)
    {
    if(PlayerInfo[playerid][pRank] == 11) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. )**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == [img]https://breadfish.de/wcf/images/smilies/cool.png[/img] { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. )**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_Aztecas_COLOR, string);
    }
    else if(member==12)
    {
    if(PlayerInfo[playerid][pRank] == 11) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. )**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == [img]https://breadfish.de/wcf/images/smilies/cool.png[/img] { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. )**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_Aztecas_COLOR, string);
    }
    else if(member==13)
    {
    if(PlayerInfo[playerid][pRank] == 11) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. )**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == [img]https://breadfish.de/wcf/images/smilies/cool.png[/img] { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. )**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_Aztecas_COLOR, string);
    }
    else if(member==14)
    {
    if(PlayerInfo[playerid][pRank] == 11) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. )**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == [img]https://breadfish.de/wcf/images/smilies/cool.png[/img] { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. )**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_Aztecas_COLOR, string);
    }
    else if(member==15)
    {
    if(PlayerInfo[playerid][pRank] == 11) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. )**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == [img]https://breadfish.de/wcf/images/smilies/cool.png[/img] { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. )**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_Aztecas_COLOR, string);
    }
    else if(member==16)
    {
    if(PlayerInfo[playerid][pRank] == 11) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. )**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == [img]https://breadfish.de/wcf/images/smilies/cool.png[/img] { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. )**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_Aztecas_COLOR, string);
    }
    else if(member==17)
    {
    if(PlayerInfo[playerid][pRank] == 11) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. )**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == [img]https://breadfish.de/wcf/images/smilies/cool.png[/img] { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. )**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_Aztecas_COLOR, string);
    }
    else if(member==18)
    {
    if(PlayerInfo[playerid][pRank] == 11) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. )**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == [img]https://breadfish.de/wcf/images/smilies/cool.png[/img] { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. )**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_Aztecas_COLOR, string);
    }
    else if(member==19)
    {
    if(PlayerInfo[playerid][pRank] == 11) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. )**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == [img]https://breadfish.de/wcf/images/smilies/cool.png[/img] { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. )**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_Aztecas_COLOR, string);
    }
    else if(member==20)
    {
    if(PlayerInfo[playerid][pRank] == 11) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. )**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == [img]https://breadfish.de/wcf/images/smilies/cool.png[/img] { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. )**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_Aztecas_COLOR, string);
    }
    else if(member == 21)
    {
    if(PlayerInfo[playerid][pRank] == 11) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. )**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == [img]https://breadfish.de/wcf/images/smilies/cool.png[/img] { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. )**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_Aztecas_COLOR, string);
    }
    else if(member==23)
    {
    if(PlayerInfo[playerid][pRank] == 11) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. )**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == [img]https://breadfish.de/wcf/images/smilies/cool.png[/img] { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. )**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "**(( Unbesetzt %s: %s. ))**", sendername, result); }
    SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_Aztecas_COLOR, string);
    }
    else if(leader==1)
    {
    format(string, sizeof(string), "**(( Chief of Police %s: %s. ))**", sendername, result);
    SendFamilyMessage(PlayerInfo[playerid][pLeader], TEAM_Aztecas_COLOR, string);
    }
    else if(leader==2)
    {
    format(string, sizeof(string), "**(( FBI Director %s: %s. ))**", sendername, result);
    SendFamilyMessage(PlayerInfo[playerid][pLeader], TEAM_Aztecas_COLOR, string);
    }
    else if(leader==3)
    {
    format(string, sizeof(string), "**(( Sheriff %s: %s. ))**", sendername, result);
    SendFamilyMessage(PlayerInfo[playerid][pLeader], TEAM_Aztecas_COLOR, string);
    }
    else if(leader==24)
    {
    format(string, sizeof(string), "**(( Ordnungsamt Direktor %s: %s. ))**", sendername, result);
    SendFamilyMessage(PlayerInfo[playerid][pLeader], TEAM_Aztecas_COLOR, string);
    }
    else if(leader==4)
    {
    format(string, sizeof(string), "**(( Chefarzt %s: %s. ))**", sendername, result);
    SendFamilyMessage(PlayerInfo[playerid][pLeader], TEAM_Aztecas_COLOR, string);
    }
    }



    Kann mir einer sagen warum die Frak ids 1,2,3,4,24 nicht schreiben kann es kommt keine Nachricht aber es zeigt nichts an

  • if(strcmp(cmd, "/family", true) == 0 || strcmp(cmd, "/f", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pMuted] == 1)
    {
    SendClientMessage(playerid, TEAM_CYAN_COLOR, "Du kannst nicht sprechen, du wurdest gemutet!");
    return 1;
    }
    if(PlayerInfo[playerid][pGangJailed] == 1)
    {
    SendClientMessage(playerid, TEAM_CYAN_COLOR, "Du kannst nichts ins Familienchat schreiben!");
    return 1;
    }
    if(PlayerTied[playerid] == 1)
    {
    SendClientMessage(playerid, TEAM_CYAN_COLOR, "Du kannst nichts ins Familienchat schreiben!");
    return 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_GRAD2, "BENUTZUNG: (/f)amily [familien chat]");
    return 1;
    }
    new leader = PlayerInfo[playerid][pLeader];
    new member = PlayerInfo[playerid][pMember];
    if( (member >= 5 && member <= 24) || (leader >= 5 && leader <= 24) )
    if(member != 7 && leader != 7)
    {
    if(member==1)
    {
    if(PlayerInfo[playerid][pRank] == 11) { format(string, sizeof(string), "**(( Chief of Police %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "**(( Deputy Chief %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "**(( Assistant Chief %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "**(( Commander %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "**(( Sergeant %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "**(( Inspector %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "**(( Deputy Inspector %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "**(( Lead Officeer %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "**(( Deputy Lead Officer %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "**(( Officer %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "**(( Police Officer Trainee %s: %s ))**", sendername, result); }
    SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_Aztecas_COLOR, string);
    }
    else if(member==2)
    {
    if(PlayerInfo[playerid][pRank] == 11) { format(string, sizeof(string), "**(( FBI Director %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "**(( Deputy Director %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "**(( Chief of Staff %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "**(( Special Agent in Charge %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "**(( Section Chief %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "**(( NSB Agent %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "**(( SFC Agent %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "**(( DEA Agent %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "**(( Senior Special Agent %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "**(( Special Agent %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "**(( Probationary Agent %s: %s ))**", sendername, result); }
    SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_Aztecas_COLOR, string);
    }
    else if(member==3)
    {
    if(PlayerInfo[playerid][pRank] == 11) { format(string, sizeof(string), "**(( Sheriff %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "**(( Stellv Cherif %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "**(( Agent %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "**(( Elite-Trupp %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "**(( Ausbilder %s: %s. ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "**(( Unbesetzt %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "**(( Einweiser %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "**(( Einsatzleiter %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "**(( Urlauber %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "**(( Festangestellter %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "**(( Praktikant %s: %s ))**", sendername, result); }
    SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_Aztecas_COLOR, string);
    }
    else if(member==24)
    {
    if(PlayerInfo[playerid][pRank] == 11) { format(string, sizeof(string), "**(( Ordnungsamt Direktor %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "**(( Ordnungsamt Vizedirektor %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "**(( Ordnungsamt Ausbilder %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "**(( Ordnungsamt Vorstand %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "**(( Ordnungshüter %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "**(( -Nicht vergeben- %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "**(( Ordnungsamt Kontrolleur %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "**(( Ordnungsamt Abschlepper %%s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "**(( Ordnungsamt Urlauber %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "**(( Ordnungsamt Lehrling %s: %s ))**", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "**(( Ordnungsamt Praktikant %s: %s ))**", sendername, result); }
    SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_Aztecas_COLOR, string);
    }


    so stimmts^^

  • Die Abfragen in Zeile 41 und 42 machen nicht sonderlich Sinn. Auch funktioniert der Befehl nur, wenn pMember gesetzt ist. Wird pMember als Leader auch gesetzt oder nur pLeader? Ich arbeite seit langem nicht mehr mit Godfather und kann es deshalb nicht genau sagen. Falls du es nicht genau weißt, kannst du es ja per Debug erfahren:



    Code
    printf("pMember: %d pLeader: %d", playerInfo[playerid][pMember], playerInfo[playerid][pLeader]);

    Einfach nach Zeile 40 einsetzen.