Top 5 Listen Fehler (Biete 5-10€ psc wenn es Funktioniert!)

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
  • Ich bin am verzweifeln, da ich diese blöde Top 5 Liste nicht schaffe.. :( Ich habe die Top5 Liste schon erstellt als Textdraw und die sieht so aus: http://s14.postimg.org/tck3rlfip/sa_mp_492.png
    Nur halt schaff ich es nicht das ich die User drauf packe.. Ich wollte das auf der Liste alle Fraktionsmitglieder drauf befinden die teilgenommen haben am GW. auf der Linken Seite eben die Angreifer und auf rechts die Verteidiger..
    Dazu Sollten sie in tabellen abgeschnitten werden wie auf dem Screen: Name: Kills: Deaths: K/D (Rate): DMG: (Wie viel Schaden sie insgesammt gemacht haben egal mit welcher waffe.. Aber die User sollten so geordnet werden, dass der Beste Oben steht, der zweite unten, der dritte unter dem 2. usw...


    Ich habe die Liste Top 5 genannt weil ich anfangs für 5 Personen machen wollte jedoch will ich das man jede einzelne Person, die am Gangwar teilgenommen hat drauf sieht..


    Variabeln:
    Spieler[killerid][GWRoundKills]
    Spieler[killerid][GWTotalKills]
    Spieler[playerid][GWRoundDeaths]
    Spieler[playerid][GWTotalDeaths]
    Spieler[playerid][GWRoundDamage]
    Spieler[playerid][GWTotalDamage]


    Abfragungen:
    GetPlayerFaction(playerid); // Fragt ab ob der Spieler in einer Gang ist
    stock GetPlayerFaction(playerid)
    {
    new Member = CallRemoteFunction("GetPlayerMember","i",playerid);
    if(Member)
    return Member;
    new Leader = CallRemoteFunction("GetPlayerLeader","i",playerid);
    if(Leader)
    return Leader;
    return 0;
    }


    IsAFightFaction(Faction); // Eine Fraktion die Kämpfen kann..
    stock GetZoneColorOfFaction(Faction)
    {
    if(Faction == 4) return 0xFFE6006E; // Vagos
    else if(Faction == 5) return 0x0FDD0065; // Grove Street
    else if(Faction == 7) return 0xF000E063; // Saint Jefferson Ballas
    else if(Faction == 9) return 0xF0F0F09D; // Yakuza
    else if(Faction == 12) return 0x3F211AB4; // La Cosa Nostra
    else if(Faction == 13) return 0x00F5FF6C; // Varrios Los Aztecas
    else if(Faction == 17) return 0xB29A0087; // West Coast Custom
    else if(Faction == 18) return 0xBC0000C8; // The Mafia
    else return 0xBEBEBE67; // Kein Besitzer
    }


    GetFactionNameOfFaction(Faction); // Die Fraktionsnamen die einen gangwar bestreiten können..
    stock GetFactionNameOfFaction(Faction)
    {
    new FactionName[64];
    if(Faction == 4) format(FactionName,sizeof(FactionName),"Vagos");
    else if(Faction == 5) format(FactionName,sizeof(FactionName),"Grove Street");
    else if(Faction == 7) format(FactionName,sizeof(FactionName),"S. J. Ballas");
    else if(Faction == 9) format(FactionName,sizeof(FactionName),"Yakuza");
    else if(Faction == 12) format(FactionName,sizeof(FactionName),"La Cosa Nostra");
    else if(Faction == 13) format(FactionName,sizeof(FactionName),"Varrios Los Aztecas");
    else if(Faction == 17) format(FactionName,sizeof(FactionName),"West Coast Custom");
    else if(Faction == 18) format(FactionName,sizeof(FactionName),"The Mafia");
    else format(FactionName,sizeof(FactionName),"Kein Besitzer");
    return FactionName;
    }


    Und hier die Textdraws:
    forward Top5Screen();
    public Top5Screen()
    {
    EN_AttackerBox = TextDrawCreate(178.500000 + 19.4, 176.00000 + 0, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~");
    TextDrawAlignment(EN_AttackerBox, 2);
    TextDrawFont(EN_AttackerBox, 1);
    TextDrawLetterSize(EN_AttackerBox, 0.31, 1.45);
    TextDrawBackgroundColor(EN_AttackerBox,0xFF444444);
    TextDrawColor(EN_AttackerBox, 16711935);
    TextDrawSetOutline(EN_AttackerBox, 1);
    TextDrawSetProportional(EN_AttackerBox, 1);
    TextDrawSetShadow(EN_AttackerBox,0);
    TextDrawTextSize(EN_AttackerBox, 20, 180);
    TextDrawUseBox(EN_AttackerBox, 1);
    TextDrawBoxColor(EN_AttackerBox, 0xFF444444);


    EN_DefenderBox = TextDrawCreate(460.000000 + -79, 176.00000 + 0, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~");
    TextDrawAlignment(EN_DefenderBox, 2);
    TextDrawFont(EN_DefenderBox, 1);
    TextDrawLetterSize(EN_DefenderBox, 0.31, 1.45);
    TextDrawBackgroundColor(EN_DefenderBox,0x3388FF44);
    TextDrawColor(EN_DefenderBox, 16711935);
    TextDrawSetOutline(EN_DefenderBox, 1);
    TextDrawSetProportional(EN_DefenderBox, 1);
    TextDrawSetShadow(EN_DefenderBox,0);
    TextDrawTextSize(EN_DefenderBox, 20, 180); //20, 220
    TextDrawUseBox(EN_DefenderBox, 1);
    TextDrawBoxColor(EN_DefenderBox, 0x3388FF44);


    EN_AttackerTextBox = TextDrawCreate(121.3 + 19.4, 139.00000 + 0, "~n~~n~");
    TextDrawAlignment(EN_AttackerTextBox, 2);
    TextDrawFont(EN_AttackerTextBox, 1);
    TextDrawTextSize(EN_AttackerTextBox, 20, 65.7);
    TextDrawUseBox(EN_AttackerTextBox, 1);
    TextDrawBoxColor(EN_AttackerTextBox, 0xFF444466);
    TextDrawSetProportional(EN_AttackerTextBox, 1);


    EN_Attacker = TextDrawCreate(92.000000 + 19.4, 140.000000 + 0,"~r~~h~Attacker");
    TextDrawFont(EN_Attacker, 1);
    TextDrawLetterSize(EN_Attacker, 0.4, 1.8);
    TextDrawBackgroundColor(EN_Attacker,0x00000066);
    TextDrawColor(EN_Attacker,-65281);
    TextDrawSetOutline(EN_Attacker,1);
    TextDrawSetProportional(EN_Attacker, 1);
    TextDrawAlignment(EN_Attacker,1);
    TextDrawSetShadow(EN_Attacker,0);


    EN_DefenderTextBox = TextDrawCreate(417.5 + 19.4, 139.00000 + 0, "~n~~n~");
    TextDrawAlignment(EN_DefenderTextBox, 2);
    TextDrawFont(EN_DefenderTextBox, 1);
    TextDrawTextSize(EN_DefenderTextBox, 20, 67.5);
    TextDrawUseBox(EN_DefenderTextBox, 1);
    TextDrawBoxColor(EN_DefenderTextBox, 0x3388FF66);
    TextDrawSetProportional(EN_DefenderTextBox, 1);


    EN_Defender = TextDrawCreate(485.000000 + -79, 140.000000 + 0,"~b~~h~Defender");
    TextDrawFont(EN_Defender, 1);
    TextDrawLetterSize(EN_Defender, 0.4, 1.8);
    TextDrawBackgroundColor(EN_Defender,0x00000066);
    TextDrawColor(EN_Defender,-65281);
    TextDrawSetOutline(EN_Defender,1);
    TextDrawSetProportional(EN_Defender, 1);
    TextDrawAlignment(EN_Defender,1);
    TextDrawSetShadow(EN_Defender,0);


    EN_WhoWonBox = TextDrawCreate(269 + 19.4, 139.00000 + 0, "~n~~n~");
    TextDrawAlignment(EN_WhoWonBox, 2);
    TextDrawFont(EN_WhoWonBox, 1);
    TextDrawTextSize(EN_WhoWonBox, 20, 223.5);
    TextDrawUseBox(EN_WhoWonBox, 1);
    TextDrawBoxColor(EN_WhoWonBox, 0x00000044);
    TextDrawSetProportional(EN_WhoWonBox, 1);


    EN_WhoWonTopBar = TextDrawCreate(270 + 19.4, 101.90000 + 0, "~n~");
    TextDrawAlignment(EN_WhoWonTopBar, 2);
    TextDrawFont(EN_WhoWonTopBar, 1);
    TextDrawTextSize(EN_WhoWonTopBar, 20, 363.5);
    TextDrawUseBox(EN_WhoWonTopBar, 1);
    TextDrawBoxColor(EN_WhoWonTopBar, 0x00000044);
    TextDrawSetProportional(EN_WhoWonTopBar, 1);


    EN_WhoWonAttBar = TextDrawCreate(148.3 + 19.4, 115.400000 + 0, "~n~~n~");
    TextDrawAlignment(EN_WhoWonAttBar, 2);
    TextDrawFont(EN_WhoWonAttBar, 1);
    TextDrawTextSize(EN_WhoWonAttBar, 20, 120);
    TextDrawUseBox(EN_WhoWonAttBar, 1);
    TextDrawBoxColor(EN_WhoWonAttBar, 0x00000044);
    TextDrawSetProportional(EN_WhoWonAttBar, 1);


    EN_WhoWonDefBar = TextDrawCreate(391.7 + 19.4, 115.40000 + 0, "~n~~n~");
    TextDrawAlignment(EN_WhoWonDefBar, 2);
    TextDrawFont(EN_WhoWonDefBar, 1);
    TextDrawTextSize(EN_WhoWonDefBar, 20, 120);
    TextDrawUseBox(EN_WhoWonDefBar, 1);
    TextDrawBoxColor(EN_WhoWonDefBar, 0x00000044);
    TextDrawSetProportional(EN_WhoWonDefBar, 1);


    EN_WhoWonAttWinBar = TextDrawCreate(270.1 + 19.4, 115.400000 + 0, "~n~~n~");
    TextDrawAlignment(EN_WhoWonAttWinBar, 2);
    TextDrawFont(EN_WhoWonAttWinBar, 1);
    TextDrawTextSize(EN_WhoWonAttWinBar, 20, 117.5);
    TextDrawUseBox(EN_WhoWonAttWinBar, 1);
    TextDrawBoxColor(EN_WhoWonAttWinBar, 0xFF444466);
    TextDrawSetProportional(EN_WhoWonAttWinBar, 1);


    EN_WhoWonDefWinBar = TextDrawCreate(270.1 + 19.4, 115.400000 + 0, "~n~~n~");
    TextDrawAlignment(EN_WhoWonDefWinBar, 2);
    TextDrawFont(EN_WhoWonDefWinBar, 1);
    TextDrawTextSize(EN_WhoWonDefWinBar, 20, 117.5);
    TextDrawUseBox(EN_WhoWonDefWinBar, 1);
    TextDrawBoxColor(EN_WhoWonDefWinBar, 0x3388FF66);
    TextDrawSetProportional(EN_WhoWonDefWinBar, 1);


    EN_WhoWon = TextDrawCreate(289.000000, 100.000000,"_");
    TextDrawFont(EN_WhoWon, 1);
    TextDrawLetterSize(EN_WhoWon, 0.4, 1.8);
    TextDrawBackgroundColor(EN_WhoWon,0x00000066);
    TextDrawColor(EN_WhoWon,-65281);
    TextDrawSetOutline(EN_WhoWon,1);
    TextDrawSetProportional(EN_WhoWon, 1);
    TextDrawAlignment(EN_WhoWon,2);
    TextDrawSetShadow(EN_WhoWon,0);


    EN_AttackerTitleBox = TextDrawCreate(178.500000 + 19.4, 162.50000 + 0, "~n~");
    TextDrawAlignment(EN_AttackerTitleBox, 2);
    TextDrawFont(EN_AttackerTitleBox, 1);
    TextDrawTextSize(EN_AttackerTitleBox, 20, 180);
    TextDrawUseBox(EN_AttackerTitleBox, 1);
    TextDrawBoxColor(EN_AttackerTitleBox, 0xFF444466);
    TextDrawSetProportional(EN_AttackerTitleBox, 1);


    EN_AttackerTitle = TextDrawCreate(90.000000 + 19.4, 162.000000 + 0,"_");
    TextDrawFont(EN_AttackerTitle, 1);
    TextDrawLetterSize(EN_AttackerTitle, 0.2, 1.0);
    TextDrawBackgroundColor(EN_AttackerTitle,0x00000066);
    TextDrawColor(EN_AttackerTitle,-65281);
    TextDrawSetOutline(EN_AttackerTitle,1);
    TextDrawSetProportional(EN_AttackerTitle, 1);
    TextDrawAlignment(EN_AttackerTitle,1);
    TextDrawSetShadow(EN_AttackerTitle,0);


    EN_DefenderTitleBox = TextDrawCreate(460.000000 + -79, 162.50000 + 0, "~n~");
    TextDrawAlignment(EN_DefenderTitleBox, 2);
    TextDrawFont(EN_DefenderTitleBox, 1);
    TextDrawTextSize(EN_DefenderTitleBox, 20, 180);
    TextDrawUseBox(EN_DefenderTitleBox, 1);
    TextDrawBoxColor(EN_DefenderTitleBox, 0x3388FF66);
    TextDrawSetProportional(EN_DefenderTitleBox, 1);


    EN_DefenderTitle = TextDrawCreate(372 + -79, 162.000000 + 0,"_");
    TextDrawFont(EN_DefenderTitle, 1);
    TextDrawLetterSize(EN_DefenderTitle, 0.2, 1.000000);
    TextDrawBackgroundColor(EN_DefenderTitle,0x00000066);
    TextDrawColor(EN_DefenderTitle,-65281);
    TextDrawSetOutline(EN_DefenderTitle,1);
    TextDrawSetProportional(EN_DefenderTitle, 1);
    TextDrawAlignment(EN_DefenderTitle,1);
    TextDrawSetShadow(EN_DefenderTitle,0);


    EN_AttackerList = TextDrawCreate(109.000000 , 178.000000 + 0,"_");
    TextDrawFont(EN_AttackerList, 1);
    TextDrawLetterSize(EN_AttackerList, 0.200000, 1.000000);
    TextDrawBackgroundColor(EN_AttackerList,0x00000044);
    TextDrawColor(EN_AttackerList,-65281);
    TextDrawSetOutline(EN_AttackerList,1);
    TextDrawSetProportional(EN_AttackerList, 1);
    TextDrawAlignment(EN_AttackerList,1);
    TextDrawSetShadow(EN_AttackerList,0);


    EN_AttackerKills = TextDrawCreate(194.000000 , 178.000000 + 0,"_");
    TextDrawFont(EN_AttackerKills, 1);
    TextDrawLetterSize(EN_AttackerKills, 0.200000, 1.000000);
    TextDrawBackgroundColor(EN_AttackerKills,0x00000044);
    TextDrawColor(EN_AttackerKills,-65281);
    TextDrawSetOutline(EN_AttackerKills,1);
    TextDrawSetProportional(EN_AttackerKills, 1);
    TextDrawAlignment(EN_AttackerKills,2);
    TextDrawSetShadow(EN_AttackerKills,0);


    EN_TAttackerKills = TextDrawCreate(191.000000 , 178.000000 + 0,"_");
    TextDrawFont(EN_TAttackerKills, 1);
    TextDrawLetterSize(EN_TAttackerKills, 0.200000, 1.000000);
    TextDrawBackgroundColor(EN_TAttackerKills,0x00000044);
    TextDrawColor(EN_TAttackerKills,-65281);
    TextDrawSetOutline(EN_TAttackerKills,1);
    TextDrawSetProportional(EN_TAttackerKills, 1);
    TextDrawAlignment(EN_TAttackerKills,2);
    TextDrawSetShadow(EN_TAttackerKills,0);


    EN_AttackerHP = TextDrawCreate(219.5000000 , 178.000000 + 0,"_");
    TextDrawFont(EN_AttackerHP, 1);
    TextDrawLetterSize(EN_AttackerHP, 0.200000, 1.000000);
    TextDrawBackgroundColor(EN_AttackerHP,0x00000044);
    TextDrawColor(EN_AttackerHP,-65281);
    TextDrawSetOutline(EN_AttackerHP,1);
    TextDrawSetProportional(EN_AttackerHP, 1);
    TextDrawAlignment(EN_AttackerHP,2);
    TextDrawSetShadow(EN_AttackerHP,0);


    EN_TAttackerDeaths = TextDrawCreate(208.000000 , 178.000000 + 0,"_");
    TextDrawFont(EN_TAttackerDeaths, 1);
    TextDrawLetterSize(EN_TAttackerDeaths, 0.200000, 1.000000);
    TextDrawBackgroundColor(EN_TAttackerDeaths,0x00000044);
    TextDrawColor(EN_TAttackerDeaths,-65281);
    TextDrawSetOutline(EN_TAttackerDeaths,1);
    TextDrawSetProportional(EN_TAttackerDeaths, 1);
    TextDrawAlignment(EN_TAttackerDeaths,2);
    TextDrawSetShadow(EN_TAttackerDeaths,0);


    EN_TAttackerRoundsPlayed = TextDrawCreate(225.000000 , 178.000000 + 0,"_");
    TextDrawFont(EN_TAttackerRoundsPlayed, 1);
    TextDrawLetterSize(EN_TAttackerRoundsPlayed, 0.200000, 1.000000);
    TextDrawBackgroundColor(EN_TAttackerRoundsPlayed,0x00000044);
    TextDrawColor(EN_TAttackerRoundsPlayed,-65281);
    TextDrawSetOutline(EN_TAttackerRoundsPlayed,1);
    TextDrawSetProportional(EN_TAttackerRoundsPlayed, 1);
    TextDrawAlignment(EN_TAttackerRoundsPlayed,2);
    TextDrawSetShadow(EN_TAttackerRoundsPlayed,0);


    EN_AttackerAccuracy = TextDrawCreate(246.000000 , 178.000000 + 0,"_");
    TextDrawFont(EN_AttackerAccuracy, 1);
    TextDrawLetterSize(EN_AttackerAccuracy, 0.200000, 1.000000);
    TextDrawBackgroundColor(EN_AttackerAccuracy,0x00000044);
    TextDrawColor(EN_AttackerAccuracy,-65281);
    TextDrawSetOutline(EN_AttackerAccuracy,1);
    TextDrawSetProportional(EN_AttackerAccuracy, 1);
    TextDrawAlignment(EN_AttackerAccuracy,2);
    TextDrawSetShadow(EN_AttackerAccuracy,0);


    EN_TAttackerAccuracy = TextDrawCreate(246.500000 , 178.000000 + 0,"_");
    TextDrawFont(EN_TAttackerAccuracy, 1);
    TextDrawLetterSize(EN_TAttackerAccuracy, 0.200000, 1.000000);
    TextDrawBackgroundColor(EN_TAttackerAccuracy,0x00000044);
    TextDrawColor(EN_TAttackerAccuracy,-65281);
    TextDrawSetOutline(EN_TAttackerAccuracy,1);
    TextDrawSetProportional(EN_TAttackerAccuracy, 1);
    TextDrawAlignment(EN_TAttackerAccuracy,2);
    TextDrawSetShadow(EN_TAttackerAccuracy,0);


    EN_AttackerDamage = TextDrawCreate(273.000000, 178.000000 + 0,"_");
    TextDrawFont(EN_AttackerDamage, 1);
    TextDrawLetterSize(EN_AttackerDamage, 0.200000, 1.000000);
    TextDrawBackgroundColor(EN_AttackerDamage,0x00000044);
    TextDrawColor(EN_AttackerDamage,-65281);
    TextDrawSetOutline(EN_AttackerDamage,1);
    TextDrawSetProportional(EN_AttackerDamage, 1);
    TextDrawAlignment(EN_AttackerDamage,2);
    TextDrawSetShadow(EN_AttackerDamage,0);


    EN_TAttackerDamage = TextDrawCreate(274.000000, 178.000000 + 0,"_");
    TextDrawFont(EN_TAttackerDamage, 1);
    TextDrawLetterSize(EN_TAttackerDamage, 0.200000, 1.000000);
    TextDrawBackgroundColor(EN_TAttackerDamage,0x00000044);
    TextDrawColor(EN_TAttackerDamage,-65281);
    TextDrawSetOutline(EN_TAttackerDamage,1);
    TextDrawSetProportional(EN_TAttackerDamage, 1);
    TextDrawAlignment(EN_TAttackerDamage,2);
    TextDrawSetShadow(EN_TAttackerDamage,0);


    EN_DefenderList = TextDrawCreate(294.000000 , 178.000000 + 0,"_");
    TextDrawFont(EN_DefenderList, 1);
    TextDrawLetterSize(EN_DefenderList, 0.200000, 1.000000);
    TextDrawBackgroundColor(EN_DefenderList,0x00000044);
    TextDrawColor(EN_DefenderList,-65281);
    TextDrawSetOutline(EN_DefenderList,1);
    TextDrawSetProportional(EN_DefenderList, 1);
    TextDrawAlignment(EN_DefenderList,1);
    TextDrawSetShadow(EN_DefenderList,0);


    EN_DefenderKills = TextDrawCreate(379.0000000 , 178.000000 + 0,"_");
    TextDrawFont(EN_DefenderKills, 1);
    TextDrawLetterSize(EN_DefenderKills, 0.200000, 1.000000);
    TextDrawBackgroundColor(EN_DefenderKills,0x00000044);
    TextDrawColor(EN_DefenderKills,-65281);
    TextDrawSetOutline(EN_DefenderKills,1);
    TextDrawSetProportional(EN_DefenderKills, 1);
    TextDrawAlignment(EN_DefenderKills,2);
    TextDrawSetShadow(EN_DefenderKills,0);


    EN_TDefenderKills = TextDrawCreate(374.0000000 , 178.000000 + 0,"_");
    TextDrawFont(EN_TDefenderKills, 1);
    TextDrawLetterSize(EN_TDefenderKills, 0.200000, 1.000000);
    TextDrawBackgroundColor(EN_TDefenderKills,0x00000044);
    TextDrawColor(EN_TDefenderKills,-65281);
    TextDrawSetOutline(EN_TDefenderKills,1);
    TextDrawSetProportional(EN_TDefenderKills, 1);
    TextDrawAlignment(EN_TDefenderKills,2);
    TextDrawSetShadow(EN_TDefenderKills,0);


    EN_DefenderHP = TextDrawCreate(404.000000 , 178.000000 + 0,"_");
    TextDrawFont(EN_DefenderHP, 1);
    TextDrawLetterSize(EN_DefenderHP, 0.200000, 1.000000);
    TextDrawBackgroundColor(EN_DefenderHP,0x00000044);
    TextDrawColor(EN_DefenderHP,-65281);
    TextDrawSetOutline(EN_DefenderHP,1);
    TextDrawSetProportional(EN_DefenderHP, 1);
    TextDrawAlignment(EN_DefenderHP,2);
    TextDrawSetShadow(EN_DefenderHP,0);


    EN_TDefenderDeaths = TextDrawCreate(392.000000 , 178.000000 + 0,"_");
    TextDrawFont(EN_TDefenderDeaths, 1);
    TextDrawLetterSize(EN_TDefenderDeaths, 0.200000, 1.000000);
    TextDrawBackgroundColor(EN_TDefenderDeaths,0x00000044);
    TextDrawColor(EN_TDefenderDeaths,-65281);
    TextDrawSetOutline(EN_TDefenderDeaths,1);
    TextDrawSetProportional(EN_TDefenderDeaths, 1);
    TextDrawAlignment(EN_TDefenderDeaths,2);
    TextDrawSetShadow(EN_TDefenderDeaths,0);


    EN_TDefenderRoundsPlayed = TextDrawCreate(409.000000 , 178.000000 + 0,"_");
    TextDrawFont(EN_TDefenderRoundsPlayed, 1);
    TextDrawLetterSize(EN_TDefenderRoundsPlayed, 0.200000, 1.000000);
    TextDrawBackgroundColor(EN_TDefenderRoundsPlayed,0x00000044);
    TextDrawColor(EN_TDefenderRoundsPlayed,-65281);
    TextDrawSetOutline(EN_TDefenderRoundsPlayed,1);
    TextDrawSetProportional(EN_TDefenderRoundsPlayed, 1);
    TextDrawAlignment(EN_TDefenderRoundsPlayed,2);
    TextDrawSetShadow(EN_TDefenderRoundsPlayed,0);


    EN_DefenderAccuracy = TextDrawCreate(431.00000 , 178.000000 + 0,"_");
    TextDrawFont(EN_DefenderAccuracy, 1);
    TextDrawLetterSize(EN_DefenderAccuracy, 0.200000, 1.000000);
    TextDrawBackgroundColor(EN_DefenderAccuracy,0x00000044);
    TextDrawColor(EN_DefenderAccuracy,-65281);
    TextDrawSetOutline(EN_DefenderAccuracy,1);
    TextDrawSetProportional(EN_DefenderAccuracy, 1);
    TextDrawAlignment(EN_DefenderAccuracy,2);
    TextDrawSetShadow(EN_DefenderAccuracy,0);


    EN_TDefenderAccuracy = TextDrawCreate(430.00000 , 178.000000 + 0,"_");
    TextDrawFont(EN_TDefenderAccuracy, 1);
    TextDrawLetterSize(EN_TDefenderAccuracy, 0.200000, 1.000000);
    TextDrawBackgroundColor(EN_TDefenderAccuracy,0x00000044);
    TextDrawColor(EN_TDefenderAccuracy,-65281);
    TextDrawSetOutline(EN_TDefenderAccuracy,1);
    TextDrawSetProportional(EN_TDefenderAccuracy, 1);
    TextDrawAlignment(EN_TDefenderAccuracy,2);
    TextDrawSetShadow(EN_TDefenderAccuracy,0);


    EN_DefenderDamage = TextDrawCreate(458.000000 , 178.000000 + 0,"_");
    TextDrawFont(EN_DefenderDamage, 1);
    TextDrawLetterSize(EN_DefenderDamage, 0.200000, 1.000000);
    TextDrawBackgroundColor(EN_DefenderDamage,0x00000044);
    TextDrawColor(EN_DefenderDamage,-65281);
    TextDrawSetOutline(EN_DefenderDamage,1);
    TextDrawSetProportional(EN_DefenderDamage, 1);
    TextDrawAlignment(EN_DefenderDamage,2);
    TextDrawSetShadow(EN_DefenderDamage,0);


    EN_TDefenderDamage = TextDrawCreate(458.000000 , 178.000000 + 0,"_");
    TextDrawFont(EN_TDefenderDamage, 1);
    TextDrawLetterSize(EN_TDefenderDamage, 0.200000, 1.000000);
    TextDrawBackgroundColor(EN_TDefenderDamage,0x00000044);
    TextDrawColor(EN_TDefenderDamage,-65281);
    TextDrawSetOutline(EN_TDefenderDamage,1);
    TextDrawSetProportional(EN_TDefenderDamage, 1);
    TextDrawAlignment(EN_TDefenderDamage,2);
    TextDrawSetShadow(EN_TDefenderDamage,0);
    return 1;
    }


    Top5Funktion(playerid); //Sollte die Funktion sein, die diese Top 5 Liste anzeigt
    forward Top5Funktion(playerid);
    public Top5Funktion(playerid)
    {
    MatchEnded = true;
    Top5Screen();


    Spieler[playerid][GWTotalKills] = 0;
    Spieler[playerid][GWTotalDeaths] = 0;
    Spieler[playerid][GWTotalDamage] = 0;


    ShowEndRoundTextDraw(playerid);
    return 1;
    }


    Und hier so art Platzhalter..
    stock ShowEndRoundTextDraw(playerid)
    {
    TextDrawShowForPlayer(playerid, EN_Attacker);
    TextDrawShowForPlayer(playerid, EN_Defender);
    TextDrawShowForPlayer(playerid, EN_WhoWon);
    TextDrawShowForPlayer(playerid, EN_AttackerTitle);
    TextDrawShowForPlayer(playerid, EN_DefenderTitle);
    TextDrawShowForPlayer(playerid, EN_AttackerList);


    if(MatchEnded == false) TextDrawShowForPlayer(playerid, EN_AttackerKills);
    else
    {
    TextDrawShowForPlayer(playerid, EN_TAttackerKills);
    TextDrawSetString(EN_AttackerKills, "");
    }


    if(MatchEnded == false)TextDrawShowForPlayer(playerid, EN_AttackerHP);
    else
    {
    TextDrawShowForPlayer(playerid, EN_TAttackerDeaths);
    TextDrawShowForPlayer(playerid, EN_TAttackerRoundsPlayed);
    TextDrawSetString(EN_AttackerHP, "");
    }


    if(MatchEnded == false)TextDrawShowForPlayer(playerid, EN_AttackerAccuracy);
    else
    {
    TextDrawShowForPlayer(playerid, EN_TAttackerAccuracy);
    TextDrawSetString(EN_AttackerAccuracy, "");
    }
    if(MatchEnded == false)TextDrawShowForPlayer(playerid, EN_AttackerDamage);
    else
    {
    TextDrawShowForPlayer(playerid, EN_TAttackerDamage);
    TextDrawSetString(EN_AttackerDamage, "");
    }


    TextDrawShowForPlayer(playerid, EN_DefenderList);


    if(MatchEnded == false) TextDrawShowForPlayer(playerid, EN_DefenderKills);
    else
    {
    TextDrawShowForPlayer(playerid, EN_TDefenderKills);
    TextDrawSetString(EN_DefenderKills, "");
    }


    if(MatchEnded == false)TextDrawShowForPlayer(playerid, EN_DefenderHP);
    else
    {
    TextDrawShowForPlayer(playerid, EN_TDefenderDeaths);
    TextDrawShowForPlayer(playerid, EN_TDefenderRoundsPlayed);
    TextDrawSetString(EN_DefenderHP, "");
    }
    if(MatchEnded == false)TextDrawShowForPlayer(playerid, EN_DefenderAccuracy);
    else
    {
    TextDrawShowForPlayer(playerid, EN_TDefenderAccuracy);
    TextDrawSetString(EN_DefenderAccuracy, "");
    }


    if(MatchEnded == false)TextDrawShowForPlayer(playerid, EN_DefenderDamage);
    else
    {
    TextDrawShowForPlayer(playerid, EN_TDefenderDamage);
    TextDrawSetString(EN_DefenderDamage, "");
    }


    TextDrawShowForPlayer(playerid, EN_AttackerBox);
    TextDrawShowForPlayer(playerid, EN_DefenderBox);
    TextDrawShowForPlayer(playerid, EN_DefenderTitleBox);
    TextDrawShowForPlayer(playerid, EN_AttackerTitleBox);
    TextDrawShowForPlayer(playerid, EN_WhoWonBox);
    TextDrawShowForPlayer(playerid, EN_WhoWonTopBar);
    TextDrawShowForPlayer(playerid, EN_AttackerTextBox);
    TextDrawShowForPlayer(playerid, EN_DefenderTextBox);


    Spieler[playerid][TextDrawOnScreen] = true;
    }


    stock HideEndRoundTextDraw(playerid)
    {
    TextDrawHideForPlayer(playerid, EN_Attacker);
    TextDrawHideForPlayer(playerid, EN_Defender);
    TextDrawHideForPlayer(playerid, EN_WhoWon);
    TextDrawHideForPlayer(playerid, EN_AttackerTitle);
    TextDrawHideForPlayer(playerid, EN_DefenderTitle);
    TextDrawHideForPlayer(playerid, EN_AttackerList);
    TextDrawHideForPlayer(playerid, EN_AttackerKills);
    TextDrawHideForPlayer(playerid, EN_AttackerHP);
    TextDrawHideForPlayer(playerid, EN_AttackerAccuracy);
    TextDrawHideForPlayer(playerid, EN_AttackerDamage);


    TextDrawHideForPlayer(playerid, EN_DefenderList);
    TextDrawHideForPlayer(playerid, EN_DefenderKills);
    TextDrawHideForPlayer(playerid, EN_DefenderHP);
    TextDrawHideForPlayer(playerid, EN_DefenderAccuracy);
    TextDrawHideForPlayer(playerid, EN_DefenderDamage);
    TextDrawHideForPlayer(playerid, EN_AttackerBox);
    TextDrawHideForPlayer(playerid, EN_DefenderBox);
    TextDrawHideForPlayer(playerid, EN_DefenderTitleBox);
    TextDrawHideForPlayer(playerid, EN_AttackerTitleBox);
    TextDrawHideForPlayer(playerid, EN_WhoWonBox);
    TextDrawHideForPlayer(playerid, EN_WhoWonTopBar);
    TextDrawHideForPlayer(playerid, EN_AttackerTextBox);
    TextDrawHideForPlayer(playerid, EN_DefenderTextBox);
    TextDrawHideForPlayer(playerid, EN_WhoWonAttWinBar);
    TextDrawHideForPlayer(playerid, EN_WhoWonDefWinBar);


    Spieler[playerid][TextDrawOnScreen] = false;


    TextDrawHideForPlayer(playerid, EN_TAttackerKills);
    TextDrawHideForPlayer(playerid, EN_TAttackerDeaths);
    TextDrawHideForPlayer(playerid, EN_TAttackerRoundsPlayed);
    TextDrawHideForPlayer(playerid, EN_TAttackerAccuracy);
    TextDrawHideForPlayer(playerid, EN_TAttackerDamage);


    TextDrawHideForPlayer(playerid, EN_TDefenderKills);
    TextDrawHideForPlayer(playerid, EN_TDefenderDeaths);
    TextDrawHideForPlayer(playerid, EN_TDefenderRoundsPlayed);
    TextDrawHideForPlayer(playerid, EN_TDefenderAccuracy);
    TextDrawHideForPlayer(playerid, EN_TDefenderDamage);
    }


    Ich hatte etwas angefangen gehabt bzw hab ewig rumm probiert aber weil alles nichts geklappt hat, habe ich die Codes was ich gescriptet hatte gelöscht.. (Aus Wut und Enthäuschung leider..)
    Wer es schafft diese Funktionsfähig zu bekommen, schenke ich als Dank eine 5-10€ psc

    Einmal editiert, zuletzt von tayson87 ()