Beiträge von tayson87

    Schönen guten Abend,
    Kann einer mir bitte helfen, es geht darum die Farben zu bestimmen..


    Ich habe 3 Farbcodes (oder wie man es nennt) aber weis leider nicht welche Farben die haben.. Kann mir bitte einer helfen und sagen wie man dies herausfinden kann? :/


    TextDrawColor(Textdraw0, 421085354);
    TextDrawColor(Textdraw12, 8388863);
    TextDrawColor(Textdraw14, -1378294017);


    mit freundlichen Grüßen

    Nunja hab das mal so angepasst, aber das Problem ist die User stehen nicht drauf nach dem GW -.- Textdraw ect klappt aber kein User steht drauf..
    Ich habs halt so gemacht auf der linken seite die attacker und auf der rechten die defender, von jeder fraktion sehen die User die Top Score liste nach dem besten sortiert.. Doch kein user kommt auf diese liste drauf..
    Und im chat sieht man dann die Top 3 User mit den am meisten Kills (egal ob gegnerische fraktion oder eigene fraktion)
    Nun frage an euch, wo hab ich ein fehler gemacht ?
    Screen von der Top 5: http://fs1.directupload.net/images/150113/bu7mjwb9.png


    stock ShowEndRoundTextDraw(playerid)
    {
    new p,
    playerScores[MAX_PLAYERS][rankingEnum],
    names[MAX_PLAYERS][MAX_PLAYER_NAME],
    TopString[3][128],
    index,
    TempZone = GetPlayerFightzone(playerid),
    iString[256];

    iString = "~r~~h~Name\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tKills\t\t\t\t\tTode\t\t\t\t\tK/D\t\t\t\t\tDmg";
    TextDrawSetString(EN_AttackerTitle, iString);


    iString = "~b~~h~Name\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tKills\t\t\t\t\tTode\t\t\t\t\tK/D\t\t\t\t\tDmg";
    TextDrawSetString(EN_DefenderTitle, iString);


    new AttList[256],AttKills[256],AttDeaths[256],AttAcc[256],AttDamage[256],DefList[256],DefKills[256],DefDeaths[256],DefAcc[256],DefDamage[256];
    for(new i = 0; i != p; ++i)
    {
    if(IsPlayerConnected(i) && !IsPlayerNPC(i) && GetPVarInt(i,"Eingeloggt") == 1)
    {
    playerScores[index][player_Team] = GetPlayerFaction(i);
    playerScores[index][player_Kills] = Spieler[i][GWTotalKills];
    playerScores[index][player_Deaths] = Spieler[i][GWTotalDeaths];
    playerScores[index][player_Acc] = floatround(Spieler[i][GWTotalKills]/Spieler[i][GWTotalDeaths], floatround_round);
    playerScores[index][player_Score] = floatround(Spieler[i][GWTotalDamage], floatround_round);
    format(names[index], MAX_PLAYER_NAME, Spieler[i][pName]);
    playerScores[index++][player_ID] = i;
    p++;

    if(playerScores[i][player_Team] == GetPlayerFaction(GangwarZones[TempZone][fsAttackFaction]))
    {
    format(AttList, sizeof(AttList), "%s~r~~h~%s~n~", AttList, names[i]);
    format(AttKills, sizeof(AttKills), "%s~w~~h~~h~%d~n~", AttKills, playerScores[i][player_Kills]);
    format(AttDeaths, sizeof(AttDeaths), "%s~w~~h~~h~%d~n~", AttDeaths, playerScores[i][player_Deaths]);
    format(AttAcc, sizeof(AttAcc), "%s~w~~h~~h~%.2f~n~", AttAcc, playerScores[i][player_Acc]);
    format(AttDamage, sizeof(AttDamage), "%s~w~~h~~h~%d~n~", AttDamage, playerScores[i][player_Score]);
    }
    else if(playerScores[i][player_Team] == GetPlayerFaction(GangwarZones[TempZone][fsOwnerFaction]))
    {
    format(DefList, sizeof(DefList), "%s~b~~h~%s~n~", DefList, names[i]);
    format(DefKills, sizeof(DefKills), "%s~w~~h~~h~%d~n~", DefKills, playerScores[i][player_Kills]);
    format(DefDeaths, sizeof(DefDeaths), "%s~w~~h~~h~%d~n~", DefDeaths, playerScores[i][player_Deaths]);
    format(DefAcc, sizeof(DefAcc), "%s~w~~h~~h~%.2f~n~", DefAcc, playerScores[i][player_Acc]);
    format(DefDamage, sizeof(DefDamage), "%s~w~~h~~h~%d~n~", DefDamage, playerScores[i][player_Score]);
    }
    if(i == 0) format(TopString[0], 128, "1st - %s ({FFFFFF}%d)", names[i], playerScores[i][player_Kills]);
    else if(i == 1) format(TopString[1], 128, "2nd - %s ({FFFFFF}%d)", names[i], playerScores[i][player_Kills]);
    else if(i == 2) format(TopString[2], 128, "3rd - %s ({FFFFFF}%d)", names[i], playerScores[i][player_Kills]);
    }
    GetPlayerHighestScores2(playerScores, names, 0, index-1);
    }

    SendClientMessageToAll(-1, " ");
    SendClientMessageToAll(-1, " ");
    SendClientMessageToAll(-1, " ");
    SendClientMessageToAll(-1, " ");
    SendClientMessageToAll(-1, " ");
    SendClientMessageToAll(-1, " ");
    SendClientMessageToAll(-1, "{FFFFFF}~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
    SendClientMessageToAll(-1, "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{FFFFFF}Top Players");
    SendClientMessageToAll(-1, " ");
    SendClientMessageToAll(-1, TopString[0]);
    SendClientMessageToAll(-1, TopString[1]);
    SendClientMessageToAll(-1, TopString[2]);
    SendClientMessageToAll(-1, "{FFFFFF}~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");


    TextDrawSetString(EN_AttackerList, AttList);
    TextDrawSetString(EN_AttackerKills, AttKills);
    TextDrawSetString(EN_AttackerDeaths, AttDeaths);
    TextDrawSetString(EN_AttackerAccuracy, AttAcc);
    TextDrawSetString(EN_AttackerDamage, AttDamage);
    TextDrawSetString(EN_DefenderList, DefList);
    TextDrawSetString(EN_DefenderKills, DefKills);
    TextDrawSetString(EN_DefenderDeaths, DefDeaths);
    TextDrawSetString(EN_DefenderAccuracy, DefAcc);
    TextDrawSetString(EN_DefenderDamage, DefDamage);


    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_AttackerDeaths);
    else
    {
    TextDrawShowForPlayer(playerid, EN_TAttackerDeaths);
    TextDrawShowForPlayer(playerid, EN_TAttackerRoundsPlayed);
    TextDrawSetString(EN_AttackerDeaths, "");
    }


    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_DefenderDeaths);
    else
    {
    TextDrawShowForPlayer(playerid, EN_TDefenderDeaths);
    TextDrawShowForPlayer(playerid, EN_TDefenderRoundsPlayed);
    TextDrawSetString(EN_DefenderDeaths, "");
    }
    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_WhoWonAttBar);
    TextDrawShowForPlayer(playerid, EN_WhoWonDefBar);
    TextDrawShowForPlayer(playerid, EN_AttackerTextBox);
    TextDrawShowForPlayer(playerid, EN_DefenderTextBox);


    Spieler[playerid][TextDrawOnScreen] = true;

    AttList = "";
    AttKills = "";
    AttDeaths = "";
    AttDamage = "";
    AttAcc = "";
    DefList = "";
    DefKills = "";
    DefDeaths = "";
    DefDamage = "";
    DefAcc = "";
    }


    stock GetPlayerHighestScores2(array[][rankingEnum], names[][MAX_PLAYER_NAME], left, right)
    {
    new
    tempLeft = left,
    tempRight = right,
    pivot = array[(left + right) / 2][player_Score],
    tempVar,
    tempVarStr[MAX_PLAYER_NAME]
    ;
    while(tempLeft <= tempRight)
    {
    while(array[tempLeft][player_Score] > pivot) tempLeft++;
    while(array[tempRight][player_Score] < pivot) tempRight--;


    if(tempLeft <= tempRight)
    {
    tempVar = array[tempLeft][player_Score], array[tempLeft][player_Score] = array[tempRight][player_Score], array[tempRight][player_Score] = tempVar;
    tempVar = array[tempLeft][player_ID], array[tempLeft][player_ID] = array[tempRight][player_ID], array[tempRight][player_ID] = tempVar;
    tempVarStr = names[tempLeft], names[tempLeft] = names[tempRight], names[tempRight] = tempVarStr;
    tempVar = array[tempLeft][player_Kills], array[tempLeft][player_Kills] = array[tempRight][player_Kills], array[tempRight][player_Kills] = tempVar;
    tempVar = array[tempLeft][player_Deaths], array[tempLeft][player_Deaths] = array[tempRight][player_Deaths], array[tempRight][player_Deaths] = tempVar;
    tempVar = array[tempLeft][player_Team], array[tempLeft][player_Team] = array[tempRight][player_Team], array[tempRight][player_Team] = tempVar;
    tempVar = array[tempLeft][player_Acc], array[tempLeft][player_Acc] = array[tempRight][player_Acc], array[tempRight][player_Acc] = tempVar;
    tempLeft++, tempRight--;
    }
    }
    if(left < tempRight) GetPlayerHighestScores2(array, names, left, tempRight);
    if(tempLeft < right) GetPlayerHighestScores2(array, names, tempLeft, right);
    }


    Jemand der mir sagen kann wo mein fehler liegt?

    Um die K/D auszurechnen habe ich halt ne kurzfassung verwendet undzwar playerScores[index][player_Acc] und habe dann diese oben so gleichgesetzt: playerScores[index][player_Acc] = Float:Spieler[i][GWTotalKills]/Float:Spieler[i][GWTotalDeaths];


    Nun zeigt er mir diesen warning an: warning 213: tag mismatch
    Kann wer helfen?


    kannste es genauer erklären weil ich blick da nichts durch ?(


    EDIT: hab das mal so gemacht


    stock GetPlayerHighestScores(array[][rankingEnum], left, right)
    {
    new
    tempLeft = left,
    tempRight = right,
    pivot = array[(left + right) / 2][player_Score],
    tempVar
    ;
    while(tempLeft <= tempRight)
    {
    while(array[tempLeft][player_Score] > pivot) tempLeft++;
    while(array[tempRight][player_Score] < pivot) tempRight--;


    if(tempLeft <= tempRight)
    {
    tempVar = array[tempLeft][player_Score], array[tempLeft][player_Score] = array[tempRight][player_Score], array[tempRight][player_Score] = tempVar;
    tempVar = array[tempLeft][player_ID], array[tempLeft][player_ID] = array[tempRight][player_ID], array[tempRight][player_ID] = tempVar;
    // format(tempVarStr, sizeof(tempVarStr), array[tempLeft][player_Name]); format(array[tempLeft][player_Name], MAX_PLAYER_NAME, array[tempRight][player_Name]); format(array[tempRight][player_Name], MAX_PLAYER_NAME, tempVarStr);
    //tempVarStr = array[tempLeft][player_Name], array[tempLeft][player_Name] = array[tempRight][player_Name], array[tempRight][player_Name] = tempVarStr;
    tempVar = array[tempLeft][player_Kills], array[tempLeft][player_Kills] = array[tempRight][player_Kills], array[tempRight][player_Kills] = tempVar;
    tempVar = array[tempLeft][player_Deaths], array[tempLeft][player_Deaths] = array[tempRight][player_Deaths], array[tempRight][player_Deaths] = tempVar;
    tempVar = array[tempLeft][player_Team], array[tempLeft][player_Team] = array[tempRight][player_Team], array[tempRight][player_Team] = tempVar;
    tempLeft++, tempRight--;
    }
    }
    if(left < tempRight) GetPlayerHighestScores(array, left, tempRight);
    if(tempLeft < right) GetPlayerHighestScores(array, tempLeft, right);
    }

    Ich will nach dem am meisten mit kills hat sortiert haben .. zB: beim Gangwar kämpfen ja 2 Fraktionen gegeneinander und dann soll halt ermittelt werden wer alles am meisten kills hat. aber nur halt fraktionsweise zB Vagos Max_Mustermann hat 30 kills, Steffen_Blabla hat 12 kills .. ect und das sollte je nach fraktion zu sehen sein.


    So ähnlich wie dieser Befehl:
    if(strcmp(cmdtext, "/members", true)==0)
    {
    if(PlayerInfo[playerid][pMember] > 0)
    {
    SendClientMessage(playerid, COLOR_YELLOW, "===[Aus deiner Fraktion ist Online: ]===");
    foreach (Player, i)
    {
    new mymember;
    mymember = PlayerInfo[playerid][pMember];
    new myleader;
    myleader = PlayerInfo[playerid][pMember];
    if(PlayerInfo[i][pMember] == mymember || PlayerInfo[i][pLeader] == myleader)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string, sizeof(string), "* %s [ID:%d][Rang:%d]", sendername,i,PlayerInfo[i][pRank]);
    SendClientMessage(playerid, COLOR_WHITE, string);
    }
    }
    return 1;
    }
    if(PlayerInfo[playerid][pLeader] > 0)
    {
    SendClientMessage(playerid, COLOR_YELLOW, "===[Aus deiner Fraktion ist Online: ]===");
    foreach (Player, i)
    {
    new mymember;
    mymember = PlayerInfo[playerid][pLeader];
    new myleader;
    myleader = PlayerInfo[playerid][pLeader];
    if(PlayerInfo[i][pMember] == mymember || PlayerInfo[i][pLeader] == myleader)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string, sizeof(string), "* %s [ID:%d][Rang:%d]", sendername,i,PlayerInfo[i][pRank]);
    SendClientMessage(playerid, COLOR_WHITE, string);
    }
    }
    return 1;
    }
    return 1;
    }


    Nur das die Member nach den besten, zweitbesten usw untereinander gelistet sind..

    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

    new AttList[256], AttKills[256], AttDeaths[256], AttDamage[256], DefList[256], DefKills[256], DefDeaths[256], DefDamage[256];
    for(new i;i<sizeof(GangwarZones);i++)
    {
    if(GangwarZones[TempZone][fsAttackFaction])
    {
    format(AttList, sizeof(AttList), "%s~r~~h~%s~n~", AttList, Spieler[playerScores[i][player_ID]][pName]);
    format(AttKills, sizeof(AttKills), "%s~r~~h~~h~%d~n~", AttKills, Spieler[playerScores[i][player_ID]][GWRoundKills]);
    format(AttDeaths, sizeof(AttDeaths), "%s~r~~h~~h~%d~n~", AttDeaths, Spieler[playerScores[i][player_ID]][GWRoundDeaths]);
    format(AttDamage, sizeof(AttDamage), "%s~r~~h~~h~%d~n~", AttDamage, playerScores[i][player_Score]);
    }
    else if(GangwarZones[TempZone][fsOwnerFaction])
    {
    format(DefList, sizeof(DefList), "%s~b~~h~%s~n~", DefList, Spieler[playerScores[i][player_ID]][pName]);
    format(DefKills, sizeof(DefKills), "%s~b~~h~~h~%d~n~", DefKills, Spieler[playerScores[i][player_ID]][GWRoundKills]);
    format(DefDeaths, sizeof(DefDeaths), "%s~b~~h~~h~%d~n~", DefDeaths, Spieler[playerScores[i][player_ID]][GWRoundDeaths]);
    format(DefDamage, sizeof(DefDamage), "%s~b~~h~~h~%d~n~", DefDamage, playerScores[i][player_Score]);
    }
    if(i == 0) format(TopString[0], 128, "%s1st - %s ({FFFFFF}%d%s)", GWFraktionsGameTextColor(Spieler[playerScores[i][player_ID]][pFraktion]), Spieler[playerScores[i][player_ID]][Name], playerScores[i][player_Score], GWFraktionsGameTextColor(Spieler[playerScores[i][player_ID]][pFraktion]));
    else if(i == 1) format(TopString[1], 128, "%s2nd - %s ({FFFFFF}%d%s)", GWFraktionsGameTextColor(Spieler[playerScores[i][player_ID]][pFraktion]), Spieler[playerScores[i][player_ID]][Name], playerScores[i][player_Score], GWFraktionsGameTextColor(Spieler[playerScores[i][player_ID]][pFraktion]));
    else if(i == 2) format(TopString[2], 128, "%s3rd - %s ({FFFFFF}%d%s)", GWFraktionsGameTextColor(Spieler[playerScores[i][player_ID]][pFraktion]), Spieler[playerScores[i][player_ID]][Name], playerScores[i][player_Score], GWFraktionsGameTextColor(Spieler[playerScores[i][player_ID]][pFraktion]));
    else if(i == 3) format(TopString[3], 128, "%s4rd - %s ({FFFFFF}%d%s)", GWFraktionsGameTextColor(Spieler[playerScores[i][player_ID]][pFraktion]), Spieler[playerScores[i][player_ID]][Name], playerScores[i][player_Score], GWFraktionsGameTextColor(Spieler[playerScores[i][player_ID]][pFraktion]));
    else if(i == 4) format(TopString[4], 128, "%s5rd - %s ({FFFFFF}%d%s)", GWFraktionsGameTextColor(Spieler[playerScores[i][player_ID]][pFraktion]), Spieler[playerScores[i][player_ID]][Name], playerScores[i][player_Score], GWFraktionsGameTextColor(Spieler[playerScores[i][player_ID]][pFraktion]));
    }
    TextDrawSetString(EN_AttackerList, AttList);
    TextDrawSetString(EN_AttackerKills, AttKills);
    TextDrawSetString(EN_AttackerDeaths, AttDeaths);
    TextDrawSetString(EN_AttackerDamage, AttDamage);
    TextDrawSetString(EN_DefenderList, DefList);
    TextDrawSetString(EN_DefenderKills, DefKills);
    TextDrawSetString(EN_DefenderDeaths, DefDeaths);
    TextDrawSetString(EN_DefenderDamage, DefDamage);

    10 Warnings 213: tag mismatch


    Undzwar die 5 Sachen mit if(i == 0) format(TopString[0] Kann wer helfen ?

    Also dann so oder wie?


    COMMAND:sapcon(playerid,params[])
    {
    if(ImTutorial[playerid] != 0)return SendClientMessage(playerid,GRAU,"Du kannst keine Befehle nutzen,da du im Tutorial bist.");
    if(GetPVarInt(playerid,"Eingeloggt") == 0)return SendClientMessage(playerid,GRAU,"Du bist nicht eingeloggt!");
    if(Spieler[playerid][pAWAYFROMKEYBOARD] == 1)return SendClientMessage(playerid,WRONGCMD,"Du bist im AFK-Modus und kannst somit keine Befehle nutzen."),SendClientMessage(playerid,WRONGCMD,"BENUTZE: /back");
    if(Spieler[playerid][pInPrison] == 1)return SendClientMessage(playerid,GRAU,"Du bist im Prison.");
    if(Spieler[playerid][pFriedhof] == 1)return SendClientMessage(playerid,GRAU,"Du bist Tot.");
    if(Spieler[playerid][pDeath] == 1)return SendClientMessage(playerid,GRAU,"Du bist verletzt.");
    if(Spieler[playerid][pJailed] != 0)return SendClientMessage(playerid,GRAU,"Du bist im Gefängnis.");
    if(Spieler[playerid][pTazerd] == 1)return SendClientMessage(playerid,GRAU,"Du bist K.O/getazert.");
    if(Spieler[playerid][pCuffed] == 1)return SendClientMessage(playerid,GRAU,"Du bist gefesselt.");
    if(isPlayerInFrakt(playerid,1) || isPlayerInFrakt(playerid,2))
    {
    new query[128],string[128];
    if(Spieler[playerid][pDuty] == 0)return SendClientMessage(playerid,GRAU,"Du bist nicht im Dienst.");
    SpamChat(playerid,0);// 0 = nur für einen spieler wird der chat kontrolliert 100 zeilen voll gespamt,bei 1 = für alle spieler
    mysql_format(MySqlConnection,query,sizeof(query),"SELECT * FROM `pdakte` WHERE `erledigt` = '0' LIMIT 10");
    mysql_function_query(MySqlConnection,query,true,"","");
    //mysql_store_result();
    showPDCStartseite(playerid);
    //if(mysql_num_rows() < 1)
    if(cache_get_row_count() < 1)
    {
    mysql_format(MySqlConnection,query,sizeof(query),"SELECT * FROM `pdakte` WHERE `erledigt` = '0' LIMIT 10");
    mysql_function_query(MySqlConnection,query,true,"","");
    //mysql_free_result();
    }
    else
    {
    new i = 0;
    new name[128],ppname[128],datum[200],verbrechen[500],kommentar[300], erledigt, idd;
    while(mysql_fetch_row(query))
    {
    sscanf(query,"p<|>is[128]s[128]s[200]s[500]s[300]i",idd,name,ppname,datum,verbrechen,kommentar,erledigt);
    fillPoliceReadyRows(i,name,verbrechen,idd);
    i++;
    }
    mysql_format(MySqlConnection,query,sizeof(query),"SELECT * FROM `pdakte` WHERE `erledigt` = '0' LIMIT 10");
    mysql_function_query(MySqlConnection,query,true,"","");
    //mysql_free_result();
    }
    SendClientMessage(playerid,GRUEN,"Du hast den Computer hochgefahren!");
    SendClientMessage(playerid,WEISS,"Um den Computer auszuschalten, tippe /sapcoff!");
    SendClientMessage(playerid,WEISS,"TIPP: Drücke die F7 Taste um den Chat dafür auszuschalten.");
    format(string,sizeof(string),"** %s fährt den San Andreas Police Computer hoch **",SpielerName(playerid));
    PlayerTalkPublic(playerid,MEFARBE,string,10);
    }
    return 1;
    }


    Und was soll ich statt mysql_store_result, mysql_fetch_row und mysql_free_result schreiben ? ?(

    Also ich wollte ein Script Updaten auf r39 (ka welche MySQL version der benutzt), jedoch kapier ich nicht wie ich diese Begriffe umschreiben kann :/
    Kann mir wer Helfen bzw erklären wie ich das ersetzen oder definieren kann ?


    error 017: undefined symbol "mysql_store_result"
    error 017: undefined symbol "mysql_free_result"
    error 017: undefined symbol "mysql_fetch_row"
    error 017: undefined symbol "mysql_num_rows"

    Also das ist der Befehl:


    COMMAND:listgwareas(playerid,params[])
    {
    #pragma unused params
    if(ImTutorial[playerid] != 0)return SendClientMessage(playerid,GRAU,"Du kannst keine Befehle nutzen,da du im Tutorial bist.");
    if(GetPVarInt(playerid,"Eingeloggt") == 0)return SendClientMessage(playerid,GRAU,"Du bist nicht eingeloggt!");
    if(Spieler[playerid][pAWAYFROMKEYBOARD] == 1)return SendClientMessage(playerid,WRONGCMD,"Du bist im AFK-Modus und kannst somit keine Befehle nutzen."),SendClientMessage(playerid,WRONGCMD,"BENUTZE: /back");
    new string[128];
    if(!isPlayerAnAdmin(playerid,5))return SendClientMessage(playerid,GRAU,"Du bist kein "#SERVERTAG" Teammitglied./Du hast nicht den jeweiligen Adminrang.");
    SendClientMessage(playerid,GELB,"|________Gebieteinformation________|");
    for(new gw=1;gw<sizeof(GangwarZones);gw++)
    {
    if(GangwarZones[gw][GW_Started] == 0)
    {
    format(string,sizeof(string),"Gebiet: %s | Inhaber: %s",GangwarZones[gw][GW_Zone_Name],GetFactionNameOfFaction(GangwarZones[gw][fsOwnerFaction]));
    SendClientMessage(playerid,GELB,string);
    }
    else
    {
    format(string,sizeof(string),"Gebiet: %s | %s (Punkte %i) gegen %s (Punkte %i) | Verbl. Zeit: %d Minuten",GangwarZones[gw][GW_Zone_Name],GangwarZones[gw][fsWinFaction],GangwarZones[gw][fsWinKills],GangwarZones[gw][fsLoseFaction],GangwarZones[gw][fsLoseKills],GangwarZones[gw][fsFightTime]);
    SendClientMessage(playerid,GELB,string);
    }
    }
    return 1;
    }


    Und der Fehler heißt : Tag Mismatch und deutet auf dieses Format dings
    format(string,sizeof(string),"Gebiet: %s | %s (Punkte %i) gegen %s (Punkte %i) | Verbl. Zeit: %d Minuten",GangwarZones[gw][GW_Zone_Name],GangwarZones[gw][fsWinFaction],GangwarZones[gw][fsWinKills],GangwarZones[gw][fsLoseFaction],GangwarZones[gw][fsLoseKills],GangwarZones[gw][fsFightTime]);
    SendClientMessage(playerid,GELB,string);


    und hier das enum
    enum
    {
    GW_Zone_Name[30],
    Float:fsMinX,
    Float:fsMinY,
    Float:fsMaxX,
    Float:fsMaxY,
    Float:fsCtfOfOwnerx,
    Float:fsCtfOfOwnery,
    Float:fsCtfOfOwnerz,
    Float:fsCtfOfAttackx,
    Float:fsCtfOfAttacky,
    Float:fsCtfOfAttackz,
    fsCtfOfOwner[2],
    fsCtfOfAttack[2],
    fsFlagOfOwner,
    fsFlagOfAttack,
    fsOwnerFaction,
    fsAttackFaction,
    GW_Started,
    fsKillsOfOwner,
    fsKillsOfAttack,
    fsFightTime,
    fsLastFight,
    fsZoneID,
    Text:fsWinFaction,
    Text:fsLoseFaction,
    Text:fsWinKills,
    Text:fsLoseKills,
    Text:fsTime,
    fsFightTimeCool
    };