Kleines 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
  • also ich habe ein stats system gemacht, aber bei fraktion rank und organisation kommen solche komischen zahlenpublic ShowStats(playerid,targetid)
    {
    //------------------------------------------------------------//
    new fraktion[256]; new frakid = SpielerInfo[targetid][Team];
    new organi[256], rank[256], rankid = SpielerInfo[targetid][Rank];
    //--------------------------------------------------------------------//
    if(frakid == 1) { fraktion = "Zivilist"; }
    else if(frakid == 2) { fraktion = "Polizist"; organi = "Las Venturas Polizei"; }
    else if(frakid == 3) { fraktion = "FBI Agent"; organi = "Fuderal Bureau of Investigation"; }
    else if(frakid == 4) { fraktion = "Sanitäter"; organi = "Las Venturas Krankenhaus"; }
    else if(frakid == 5) { fraktion = "Fahrlehrer"; organi = "Fahrschule Las Venturas"; }
    else if(frakid == 6) { fraktion = "Hitman"; organi = "Hitman Agency"; }
    else { organi = "-"; rank = "-"; if(frakid == 1) { fraktion = "Zivilist"; } else { fraktion = "-"; SpielerInfo[playerid][Team] = 1; } }
    //--------------------------------------------------------------------//
    if(frakid == 1) {
    if(rankid == 0) { rank = "-"; organi = "-"; }
    else if(rankid == 1) { rank = "-"; organi = "-"; }
    else if(rankid == 2) { rank = "-"; organi = "-"; }
    else if(rankid == 3) { rank = "-"; organi = "-"; }
    else if(rankid == 4) { rank = "-"; organi = "-"; }
    else if(rankid == 5) { rank = "-"; organi = "-"; }
    else if(rankid == 6) { rank = "-"; organi = "-"; }
    }
    else if(frakid == 2) {
    if(rankid == 1) { rank = "Praktikant"; }
    else if(rankid == 2) { rank = "Coporal"; }
    else if(rankid == 3) { rank = "Sergeant"; }
    else if(rankid == 4) { rank = "Major"; }
    else if(rankid == 5) { rank = "Lieutant"; }
    else if(rankid == 6) { rank = "General"; }
    else { rank = "-"; }
    }
    else if(frakid == 3) {
    if(rankid == 1) { rank = "Praktikant"; }
    else if(rankid == 2) { rank = "Agent"; }
    else if(rankid == 3) { rank = "Special Agent"; }
    else if(rankid == 4) { rank = "Professional Agent"; }
    else if(rankid == 5) { rank = "Co-General"; }
    else if(rankid == 6) { rank = "General"; }
    else { rank = "-"; }
    }
    else if(frakid == 4) {
    if(rankid == 1) { rank = "Praktikant"; }
    else if(rankid == 2) { rank = "Helfer"; }
    else if(rankid == 3) { rank = "Notfall Helfer"; }
    else if(rankid == 4) { rank = "Notfall Arzt"; }
    else if(rankid == 5) { rank = "Rettungssanitäter"; }
    else if(rankid == 6) { rank = "General"; }
    else { rank = "-"; }
    }
    else if(frakid == 5) {
    if(rankid == 1) { rank = "Praktikant"; }
    else if(rankid == 2) { rank = "Ausbilder"; }
    else if(rankid == 3) { rank = "Fahrlehrer"; }
    else if(rankid == 4) { rank = "Fluglehrer"; }
    else if(rankid == 5) { rank = "Waffenlehrer"; }
    else if(rankid == 6) { rank = "General"; }
    else { rank = "-"; }
    }
    else if(frakid == 6) {
    if(rankid == 1) { rank = "Praktikant"; }
    else if(rankid == 2) { rank = "Anfänger Killer"; }
    else if(rankid == 3) { rank = "Forgeschrittener Killer"; }
    else if(rankid == 4) { rank = "Professionaler Killer"; }
    else if(rankid == 5) { rank = "Killer"; }
    else if(rankid == 6) { rank = "General"; }
    else { rank = "-"; }
    }
    else if(frakid == 7) {
    if(rankid == 1) { rank = "Praktikant"; }
    else if(rankid == 2) { rank = "Journalist"; }
    else if(rankid == 3) { rank = "Kameramann"; }
    else if(rankid == 4) { rank = "Nachrichtensprecher"; }
    else if(rankid == 5) { rank = "Fize-Redakteur"; }
    else if(rankid == 6) { rank = "Redakteur"; }
    else { rank = "-"; }
    }
    else { rank = "-"; organi = "-"; if(frakid == 1) { fraktion = "Zivilist"; } else { fraktion = "-"; SpielerInfo[playerid][Team] = 1; } }


    new name[MAX_PLAYER_NAME], string[256], string2[256], string3[256], string4[256];
    new cash = GetPlayerMoney(targetid);
    new lvl = GetPlayerScore(targetid);
    new wants = SpielerInfo[targetid][Wanteds];
    new alvl1 = SpielerInfo[targetid][alvl];
    new Bank1 = SpielerInfo[targetid][Bank];
    new tod = SpielerInfo[targetid][Tode];
    new kill = SpielerInfo[targetid][Kills];
    new nr = SpielerInfo[targetid][Nummer];
    new drugs = SpielerInfo[targetid][Drugs];
    new mats = SpielerInfo[targetid][Mats];
    new now = SpielerInfo[targetid][Respekt];
    new now2 = (lvl*4);
    new price = (lvl*25000);
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "--------------------------------[%s]----------------------------", name);
    format(string2, sizeof(string2), "[Name: %s] [Level: %d] [Admin-Level: %d] [Geld: %d] [Bank: %d] [Respekt: %d/%d] [Levelkosten: %d]", name, lvl, alvl1, cash, Bank1, now, now2, price);
    format(string3, sizeof(string3), "[Tode: %d] [Kills: %d] [Wanteds: %d] [Drogen: %d] [Materials: %d] [Nummer: %d]", tod, kill, wants, drugs, mats, nr);
    format(string4, sizeof(string4), "[Fraktion: %d] [Rank: %d] [Organisation: %d]", fraktion,rank,organi);
    SendClientMessage(playerid, COLOR_GREEN, string);
    SendClientMessage(playerid, COLOR_WHITE, string2);
    SendClientMessage(playerid, COLOR_WHITE, string3);
    SendClientMessage(playerid, COLOR_WHITE, string4);
    SendClientMessage(playerid, COLOR_GREEN, "'----------------------------------------------'");
    return 1;
    }