Beiträge von maxyar2013

    Hallo Liebe Community ich hab ein Problem mit dem F-Chat und zwar soll die Fraktion 22 (Feuerwehr) denn F-Chat erlaubt bekommen



    else if(member==22)//TurboRider
    {
    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "((** HardcoreRider %s: %s. )) **", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "((** FullRider %s: %s. )) **", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "((** FameRider %s: %s. )) **", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "((** GelehrterRider %s: %s. )) **", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "((** AnfängerRider %s: %s. )) **", sendername, result); }
    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "((** NewbieRider %s: %s. )) **", sendername, result); }
    SendFamilyMessage(PlayerInfo[playerid][pMember], 0x000067FF, string);
    }


    new leader = PlayerInfo[playerid][pLeader];
    new member = PlayerInfo[playerid][pMember];
    if (gTeam[playerid] >= 22 || PlayerInfo[playerid][pFMember] < 255)
    if( (member >= 5 && member <= 24) || (leader >= 5 && leader <= 24) )
    if( member != 21 && leader != 21 && member != 7 && leader != 7 )
    if( member != 22 && leader != 22 )


    else if(leader==22)
    {
    format(string, sizeof(string), "((** HardcoreRider %s: %s. )) **", sendername, result);
    SendFamilyMessage(PlayerInfo[playerid][pLeader], 0x000067FF, string);
    }

    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
    new string[128];
    new string2[128];
    new giveplayer[MAX_PLAYER_NAME];
    new sendername[MAX_PLAYER_NAME];
    GetPlayerName(playerid,sendername,sizeof(sendername));
    if(dialogid == DIALOG_LOGIN)
    {
    if(response && strlen(inputtext) > 0)
    {
    OnPlayerLogin(playerid,inputtext);
    }
    else
    {
    Kick(playerid);
    }
    }
    if(dialogid == DIALOG_REG)
    {
    if(response)
    {
    ShowPlayerDialog(playerid,DIALOG_REG2,DIALOG_STYLE_INPUT,"Account erstellen","Gib das Passwort für deinen Account ein:","OK","Abbrechen");
    }
    else
    {
    ShowPlayerDialog(playerid,DIALOG_REG,DIALOG_STYLE_MSGBOX,"Account","Du benötigst einen Account, um auf diesem Server zu spielen!","Erstellen","Abbrechen");
    }
    }
    if(dialogid == DIALOG_REG2)
    {
    if(response && strlen(inputtext) > 0)
    {
    OnPlayerRegister(playerid,inputtext);
    }
    else
    {
    ShowPlayerDialog(playerid,DIALOG_REG2,DIALOG_STYLE_INPUT,"Account erstellen","Gib das Passwort für deinen Account ein:","OK","Abbrechen");
    }
    }



    Weiß bis jetzt schon einer das Problem ?

    Abend community ich habe hier eben 12 fehler bekommen wie kann ich sie beheben ?



    C:\Users\DJ_Cry\Desktop\Gh\gamemodes\DorfReallife.pwn(17618) : error 017: undefined symbol "dialogid"
    C:\Users\DJ_Cry\Desktop\Gh\gamemodes\DorfReallife.pwn(17620) : error 017: undefined symbol "response"
    C:\Users\DJ_Cry\Desktop\Gh\gamemodes\DorfReallife.pwn(17623) : error 017: undefined symbol "listitem"
    C:\Users\DJ_Cry\Desktop\Gh\gamemodes\DorfReallife.pwn(17636) : error 017: undefined symbol "listitem"
    C:\Users\DJ_Cry\Desktop\Gh\gamemodes\DorfReallife.pwn(17649) : error 017: undefined symbol "listitem"
    C:\Users\DJ_Cry\Desktop\Gh\gamemodes\DorfReallife.pwn(17662) : error 017: undefined symbol "listitem"
    C:\Users\DJ_Cry\Desktop\Gh\gamemodes\DorfReallife.pwn(17675) : error 017: undefined symbol "listitem"
    C:\Users\DJ_Cry\Desktop\Gh\gamemodes\DorfReallife.pwn(17688) : error 017: undefined symbol "listitem"
    C:\Users\DJ_Cry\Desktop\Gh\gamemodes\DorfReallife.pwn(17701) : error 017: undefined symbol "listitem"
    C:\Users\DJ_Cry\Desktop\Gh\gamemodes\DorfReallife.pwn(17714) : error 017: undefined symbol "listitem"
    C:\Users\DJ_Cry\Desktop\Gh\gamemodes\DorfReallife.pwn(17727) : error 017: undefined symbol "listitem"
    C:\Users\DJ_Cry\Desktop\Gh\gamemodes\DorfReallife.pwn(17740) : error 017: undefined symbol "listitem"



    if(dialogid == BSN)
    {
    if(response)
    {
    new Float:health;
    if(listitem == 0)
    {
    if(GetPlayerHealth(playerid, health) >= 100)
    {
    SendClientMessage(playerid, 0xDBA400FF, "Du bist satt!");
    return 1;
    }
    SendClientMessage(playerid, 0xDBA400FF, "3 Chicken Nuggets für 3$ gekauft, schöne Weiterfahrt.");
    GivePlayerMoney(playerid, -3);
    GetPlayerHealth(playerid,health);
    SetPlayerHealth(playerid, health+5);
    UnFreezePlayer(playerid);
    }
    if(listitem == 1)
    {
    if(GetPlayerHealth(playerid, health) >= 100)
    {
    SendClientMessage(playerid, 0xDBA400FF, "Du bist satt!");
    return 1;
    }
    SendClientMessage(playerid, 0xDBA400FF, "12 Chicken Nuggets für 10$ gekauft, schöne Weiterfahrt.");
    GivePlayerMoney(playerid, -10);
    GetPlayerHealth(playerid,health);
    SetPlayerHealth(playerid, health+7);
    UnFreezePlayer(playerid);
    }
    if(listitem == 2)
    {
    if(GetPlayerHealth(playerid, health) >= 100)
    {
    SendClientMessage(playerid, 0xDBA400FF, "Du bist satt!");
    return 1;
    }
    SendClientMessage(playerid, 0xDBA400FF, "20 Chicken Nuggets für 10$ gekauft, schöne Weiterfahrt.");
    GivePlayerMoney(playerid, -16);
    GetPlayerHealth(playerid,health);
    SetPlayerHealth(playerid, health+9);
    UnFreezePlayer(playerid);
    }
    if(listitem == 3)
    {
    if(GetPlayerHealth(playerid, health) >= 100)
    {
    SendClientMessage(playerid, 0xDBA400FF, "Du bist satt!");
    return 1;
    }
    SendClientMessage(playerid, 0xDBA400FF, "Eine Portion Pommes für 2$ gekauft, schöne Weiterfahrt.");
    GivePlayerMoney(playerid, -2);
    GetPlayerHealth(playerid,health);
    SetPlayerHealth(playerid, health+5);
    UnFreezePlayer(playerid);
    }
    if(listitem == 4)
    {
    if(GetPlayerHealth(playerid, health) >= 100)
    {
    SendClientMessage(playerid, 0xDBA400FF, "Du bist satt!");
    return 1;
    }
    SendClientMessage(playerid, 0xDBA400FF, "Einen Cheesburger für 5$ gekauft, schöne Weiterfahrt.");
    GivePlayerMoney(playerid, -5);
    GetPlayerHealth(playerid,health);
    SetPlayerHealth(playerid, health+10);
    UnFreezePlayer(playerid);
    }
    if(listitem == 5)
    {
    if(GetPlayerHealth(playerid, health) >= 100)
    {
    SendClientMessage(playerid, 0xDBA400FF, "Du bist satt!");
    return 1;
    }
    SendClientMessage(playerid, 0xDBA400FF, "Einen Chickenburger für 8$ gekauft, schöne Weiterfahrt.");
    GivePlayerMoney(playerid, -8);
    GetPlayerHealth(playerid,health);
    SetPlayerHealth(playerid, health+15);
    UnFreezePlayer(playerid);
    }
    if(listitem == 6)
    {
    if(GetPlayerHealth(playerid, health) >= 100)
    {
    SendClientMessage(playerid, 0xDBA400FF, "Du bist satt!");
    return 1;
    }
    SendClientMessage(playerid, 0xDBA400FF, "Einen Big Mac für 10$ gekauft, schöne Weiterfahrt.");
    GivePlayerMoney(playerid, -10);
    GetPlayerHealth(playerid,health);
    SetPlayerHealth(playerid, health+30);
    UnFreezePlayer(playerid);
    }
    if(listitem == 7)
    {
    if(GetPlayerHealth(playerid, health) >= 100)
    {
    SendClientMessage(playerid, 0xDBA400FF, "Du bist satt!");
    return 1;
    }
    SendClientMessage(playerid, 0xDBA400FF, "Eine Cola für 3$ gekauft, schöne Weiterfahrt.");
    GivePlayerMoney(playerid, -3);
    GetPlayerHealth(playerid,health);
    SetPlayerHealth(playerid, health+5);
    UnFreezePlayer(playerid);
    }
    if(listitem == 8)
    {
    if(GetPlayerHealth(playerid, health) >= 100)
    {
    SendClientMessage(playerid, 0xDBA400FF, "Du bist satt!");
    return 1;
    }
    SendClientMessage(playerid, 0xDBA400FF, "Eine Fanta für 3$ gekauft, schöne Weiterfahrt.");
    GivePlayerMoney(playerid, -3);
    GetPlayerHealth(playerid,health);
    SetPlayerHealth(playerid, health+5);
    UnFreezePlayer(playerid);
    }
    if(listitem == 9)
    {
    if(GetPlayerHealth(playerid, health) >= 10000)
    {
    SendClientMessage(playerid, 0xDBA400FF, "Du bist satt!");
    return 1;
    }
    SendClientMessage(playerid, 0xDBA400FF, "Eine Sprite für 3$ gekauft, schöne Weiterfahrt.");
    GivePlayerMoney(playerid, -3);
    GetPlayerHealth(playerid,health);
    SetPlayerHealth(playerid, health+50);
    UnFreezePlayer(playerid);
    }
    }
    }