/Check = Unknown Command

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
  • Hey,
    Wenn ich /check mache kommt immer Unknown Command
    Wie kann ich das beheben


    if (strcmp(cmd, "/check", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pAdmin] >= 1)
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Benutzung: /check [Spieler ID]");
    return 1;
    }
    giveplayerid = ReturnUser(tmp);
    if(IsPlayerConnected(giveplayerid))
    {
    if(giveplayerid != INVALID_PLAYER_ID)
    {
    Stats(playerid,giveplayerid);
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, " Der Spieler wurde nicht gefunden!");
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Du bist nicht befugt!");
    }
    }
    return 1;
    }
    Danke im Vorraus


  • if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Benutzung: /check [Spieler ID]");
    return 1;
    }


    Nimm mal das return 1; weg... sollte gehen, denk ich mal :D


    Engelsflügel am Astonkühler, als Schutz vor dem Teufel!

  • Function Stats(playerid,targetid)
    {
    if(IsPlayerConnected(targetid))
    {
    new cash = GetPlayerMoney(targetid);
    new atext[20];
    if(PlayerInfo[targetid][pSex] == 1) { atext = "Männlich"; }
    else if(PlayerInfo[targetid][pSex] == 2) { atext = "Weiblich"; }
    new otext[20];
    if(PlayerInfo[targetid][pOrigin] == 1) { otext = "Deutschland"; }
    else if(PlayerInfo[targetid][pOrigin] == 2) { otext = "Osterreich"; }
    else if(PlayerInfo[targetid][pOrigin] == 3) { otext = "Schweiz"; }
    else if(PlayerInfo[targetid][pOrigin] == 4) { otext = "Türkei"; }
    new ttext[20];
    new dtext[20];
    if(STDPlayer[targetid] == 1) { dtext = "Chlamydia"; }
    else if(STDPlayer[targetid] == 2) { dtext = "Gonorrhea"; }
    else if(STDPlayer[targetid] == 3) { dtext = "Syphilis"; }
    else { dtext = "Keine"; }
    new ftext[124];
    if(PlayerInfo[targetid][pMember] == 0 || PlayerInfo[targetid][pLeader] == 0)//Zivilist
    {
    ttext = "Zivilist";
    }
    else if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1)//PD Ranks
    {
    ttext = "SFPD";
    }
    else if(PlayerInfo[targetid][pMember] == 2 || PlayerInfo[targetid][pLeader] == 2)//FBI Ranks
    {
    ttext = "FBI";
    }
    else if(PlayerInfo[targetid][pMember] == 3 || PlayerInfo[targetid][pLeader] == 3)//ARMY
    {
    ttext = "ARMY";
    }
    else if(PlayerInfo[targetid][pMember] == 7 || PlayerInfo[targetid][pLeader] == 7)
    {
    ttext = "Regierung";
    }
    else if(PlayerInfo[targetid][pMember] == 8 || PlayerInfo[targetid][pLeader] == 8)//Hitman Ranks
    {
    ttext = "Hitman";
    }
    else if(PlayerInfo[targetid][pMember] == 9 || PlayerInfo[targetid][pLeader] == 9)//NR Ranks
    {
    ttext = "San news";
    }
    else if(PlayerInfo[targetid][pMember] == 10 || PlayerInfo[targetid][pLeader] == 10)//Taxi Company Ranks
    {
    ttext = "Taxi";
    }
    else if(IsAnInstructor(targetid))//Driving/Flying School Ranks
    {
    ttext = "Fahrschule";
    }
    else if(PlayerInfo[targetid][pMember] == 13 || PlayerInfo[targetid][pLeader] == 13)//GS
    {
    ttext = "Grove Street";
    }
    else if(PlayerInfo[targetid][pMember] == 14 || PlayerInfo[targetid][pLeader] == 14)//ballas
    {
    ttext = "Ballas";
    }
    else if(PlayerInfo[targetid][pMember] == 15 || PlayerInfo[targetid][pLeader] == 15)//hells
    {
    ttext = "Hells Angels";
    }
    else if(PlayerInfo[targetid][pMember] == 17 || PlayerInfo[targetid][pLeader] == 17)//LA
    {
    ttext = "la Aztecas";
    }
    else if(PlayerInfo[targetid][pMember] == 20 || PlayerInfo[targetid][pLeader] == 20)//Terror
    {
    ttext = "Terror";
    }
    else if(PlayerInfo[targetid][pMember] == 21 || PlayerInfo[targetid][pLeader] == 21)//wheelman
    {
    ttext = "Wheelman";
    }
    else if(PlayerInfo[targetid][pMember] == 22 || PlayerInfo[targetid][pLeader] == 22)//SWAT
    {
    ttext = "SWAT";
    }
    new f2text[20];
    new rtext[64];
    if(PlayerInfo[targetid][pMember] == 0 || PlayerInfo[targetid][pLeader] == 0)//Zivilist
    {
    if(PlayerInfo[targetid][pRank] == 0) { rtext = "Zivilist"; }
    }
    else if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1)//PD Ranks
    {
    if(PlayerInfo[targetid][pRank] == 12) { rtext = "Leitender Polizeidirektor"; }
    else if(PlayerInfo[targetid][pRank] == 11) { rtext = "Polizeidirektor"; }
    else if(PlayerInfo[targetid][pRank] == 10) { rtext = "Polizeioberrat"; }
    else if(PlayerInfo[targetid][pRank] == 9) { rtext = "Polizeirat"; }
    else if(PlayerInfo[targetid][pRank] == 8) { rtext = "Erster Polizeihauptkommissar"; }
    else if(PlayerInfo[targetid][pRank] == 7) { rtext = "Polizeihauptkommissar"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Polizeioberkommissar"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Polizeikommissar"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Polizeihauptmeister"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Polizeiobermeister"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Polizeimeister"; }
    else if(PlayerInfo[targetid][pRank] == 1) { rtext = "Polizeimeisteranwärter"; }
    }
    else if(PlayerInfo[targetid][pMember] == 2 || PlayerInfo[targetid][pLeader] == 2)//FBI Ranks
    {
    if(PlayerInfo[targetid][pRank] == 10) { rtext = "Director"; }
    else if(PlayerInfo[targetid][pRank] == 9) { rtext = "Deputy Director"; }
    else if(PlayerInfo[targetid][pRank] == 8) { rtext = "Assistent Director"; }
    else if(PlayerInfo[targetid][pRank] == 7) { rtext = "Special Agent in Charge"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Assistent Special Agent in Charge"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Supervisory Special Agent"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Special Agent"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "New Agent"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Azubi"; }
    else if(PlayerInfo[targetid][pRank] == 1) { rtext = "Praktikant"; }
    }
    else if(PlayerInfo[targetid][pMember] == 3 || PlayerInfo[targetid][pLeader] == 3)//ARMY
    {
    if(PlayerInfo[targetid][pRank] == 13) { rtext = "General"; }
    else if(PlayerInfo[targetid][pRank] == 12) { rtext = "General Major"; }
    else if(PlayerInfo[targetid][pRank] == 11) { rtext = "Oberst"; }
    else if(PlayerInfo[targetid][pRank] == 10) { rtext = "Major"; }
    else if(PlayerInfo[targetid][pRank] == 9) { rtext = "Oberleutnant"; }
    else if(PlayerInfo[targetid][pRank] == 8) { rtext = "Leutnant"; }
    else if(PlayerInfo[targetid][pRank] == 7) { rtext = "Oberstabsfeldwebel"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Feldwebel"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Oberoffizier"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Stabsunteroffizier"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Unteroffizier"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Obergefreiter"; }
    else if(PlayerInfo[targetid][pRank] == 1) { rtext = "Gefreiter"; }
    }
    else if(PlayerInfo[targetid][pMember] == 7 || PlayerInfo[targetid][pLeader] == 7)
    {
    if(PlayerInfo[targetid][pRank] == 12) { rtext = "Bundespräsident"; }
    else if(PlayerInfo[targetid][pRank] == 11) { rtext = "Bundeskanzler"; }
    else if(PlayerInfo[targetid][pRank] == 10) { rtext = "Staatsminister"; }
    else if(PlayerInfo[targetid][pRank] == 9) { rtext = "Finanz-Minister"; }
    else if(PlayerInfo[targetid][pRank] == 8) { rtext = "Steuer-Minister"; }
    else if(PlayerInfo[targetid][pRank] == 7) { rtext = "Minister"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Geheimdienst-Leiter "; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Geheimdienst"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Geheimdienst-Azubi"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Personenschutz-Leiter"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Personenschutz"; }
    else if(PlayerInfo[targetid][pRank] == 1) { rtext = "Personenschutz-Azubi"; }
    }
    else if(PlayerInfo[targetid][pMember] == 8 || PlayerInfo[targetid][pLeader] == 8)//Hitman Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Neuling"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Killer"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Profi Killer"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Schütze"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Vice Director"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Director"; }
    }
    else if(PlayerInfo[targetid][pMember] == 9 || PlayerInfo[targetid][pLeader] == 9)//NR Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Intern"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Lokaler Reporter"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Lokaler Bearbeiter"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Netzwerk Manager"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Netzwerk Bearbeiter"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Netzwerk Hersteller"; }
    else { rtext = "Intern"; }
    }
    else if(PlayerInfo[targetid][pMember] == 10 || PlayerInfo[targetid][pLeader] == 10)//Taxi Company Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Taxi Fahrer Azubi"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Taxi Neuling"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Taxi Fahrer"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Zuteiler"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Schichtzuteiler"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Taxi Firmen Besitzer"; }
    else { rtext = "Trainee"; }
    }
    else if(IsAnInstructor(targetid))//Driving/Flying School Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Praktikant"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Azubi"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Fahrlehrer"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Manager"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Co Boss"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Boss"; }
    }
    else if(PlayerInfo[targetid][pMember] == 13 || PlayerInfo[targetid][pLeader] == 13)//GS
    {
    if(PlayerInfo[targetid][pRank] == 6) { rtext = "Boss"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Co-Boss"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Gangster"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Homie"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Bro"; }
    else if(PlayerInfo[targetid][pRank] == 1) { rtext = "Sidekick"; }
    }
    else if(PlayerInfo[targetid][pMember] == 14 || PlayerInfo[targetid][pLeader] == 14)//ballas
    {
    if(PlayerInfo[targetid][pRank] == 6) { rtext = "Boss"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Co-Boss"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Gangster"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Homie"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Bro"; }
    else if(PlayerInfo[targetid][pRank] == 1) { rtext = "Sidekick"; }
    }
    else if(PlayerInfo[targetid][pMember] == 15 || PlayerInfo[targetid][pLeader] == 15)//hells
    {
    if(PlayerInfo[targetid][pRank] == 6) { rtext = "Anführer"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Stell. Anführer"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Gruftie"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Rüpel"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Rowdy"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Grossfahrer"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Rollerfahrer"; }
    else if(PlayerInfo[targetid][pRank] == 1) { rtext = "Fahrradfahrer"; }
    }
    else if(PlayerInfo[targetid][pMember] == 17 || PlayerInfo[targetid][pLeader] == 17)//LA
    {
    if(PlayerInfo[playerid][pRank] == 6) { rtext = "President"; }
    else if(PlayerInfo[playerid][pRank] == 5) { rtext = "Co-President"; }
    else if(PlayerInfo[playerid][pRank] == 4) { rtext = "Bandito"; }
    else if(PlayerInfo[playerid][pRank] == 3) { rtext = "Cazador"; }
    else if(PlayerInfo[playerid][pRank] == 2) { rtext = "Compadre"; }
    else if(PlayerInfo[playerid][pRank] == 1) { rtext = "Amigo"; }
    }
    else if(PlayerInfo[targetid][pMember] == 20 || PlayerInfo[targetid][pLeader] == 20)//Terror
    {
    if(PlayerInfo[targetid][pRank] == 6) { rtext = "Boss"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Co-Boss"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Terrorist"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Attentäter"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Auszubildender Attentäter"; }
    else if(PlayerInfo[targetid][pRank] == 1) { rtext = "Terrorzwerg"; }
    }
    else if(PlayerInfo[targetid][pMember] == 21 || PlayerInfo[targetid][pLeader] == 21)//wheelman
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Anfänger"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Söldner"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Special Söldner"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Ausbilder"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Co Direktor"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Direktor"; }
    }
    else if(PlayerInfo[targetid][pMember] == 22 || PlayerInfo[targetid][pLeader] == 22)//SWAT
    {
    if(PlayerInfo[targetid][pRank] == 12) { rtext = "SWAT-General"; }
    else if(PlayerInfo[targetid][pRank] == 11) { rtext = "SWAT-Major-General"; }
    else if(PlayerInfo[targetid][pRank] == 10) { rtext = "SWAT-Major"; }
    else if(PlayerInfo[targetid][pRank] == 9) { rtext = "SWAT-Lieutenant"; }
    else if(PlayerInfo[targetid][pRank] == 8) { rtext = "SWAT-Sergeant"; }
    else if(PlayerInfo[targetid][pRank] == 7) { rtext = "SWAT-Investigator"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "SWAT-Inspector"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "SWAT-Detective"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "SWAT-Corporal"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "SWAT-Officer"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "SWAT-Trooper"; }
    else if(PlayerInfo[targetid][pRank] == 1) { rtext = "SWAT-Greenhorn"; }
    }


    new jtext[20];
    if(PlayerInfo[targetid][pJob] == 0) { jtext = "Keinen"; }
    else if(PlayerInfo[targetid][pJob] == 1) { jtext = "Detektiv"; }
    else if(PlayerInfo[targetid][pJob] == 2) { jtext = "Anwalt"; }
    else if(PlayerInfo[targetid][pJob] == 3) { jtext = "Hure"; }
    else if(PlayerInfo[targetid][pJob] == 4) { jtext = "Drogendealer"; }
    else if(PlayerInfo[targetid][pJob] == 5) { jtext = "Autodieb"; }
    else if(PlayerInfo[targetid][pJob] == 6) { jtext = "Farmer"; }
    else if(PlayerInfo[targetid][pJob] == 7) { jtext = "Mechaniker"; }
    else if(PlayerInfo[targetid][pJob] == 8) { jtext = "Bodyguard"; }
    else if(PlayerInfo[targetid][pJob] == 9) { jtext = "Waffendealer"; }
    else if(PlayerInfo[targetid][pJob] == 10) { jtext = "Autohändler"; }
    else if(PlayerInfo[targetid][pJob] == 12) { jtext = "Boxer"; }
    else if(PlayerInfo[targetid][pJob] == 14) { jtext = "Busfahrer"; }
    else if(PlayerInfo[targetid][pJob] == 15) { jtext = "Zeitungsjunge"; }
    else if(PlayerInfo[targetid][pJob] == 16) { jtext = "Pilot"; }
    else if(PlayerInfo[targetid][pJob] == 17) { jtext = "Müllmann"; }
    else if(PlayerInfo[targetid][pJob] == 20) { jtext = "Hartz IV"; }
    else if(PlayerInfo[targetid][pJob] == 21) { jtext = "Taschendieb"; }
    else { jtext = "Keinen Job"; }
    new drank[20];
    if(PlayerInfo[targetid][pDonateRank] == 0) { drank = "Keinen"; }
    else if(PlayerInfo[targetid][pDonateRank] == 1) { drank = "Donator"; }
    else if(PlayerInfo[targetid][pDonateRank] == 2) { drank = "Premium User"; }
    else if(PlayerInfo[targetid][pDonateRank] == 3) { drank = "EhrenMember"; }
    else if(PlayerInfo[targetid][pDonateRank] == 4) { drank = "EliteMember"; }
    else { drank = "Keinen"; }
    new married[20];
    strmid(married, PlayerInfo[targetid][pMarriedTo], 0, strlen(PlayerInfo[targetid][pMarriedTo]), 255);
    new age = PlayerInfo[targetid][pAge];
    // new ptime = PlayerInfo[targetid][pConnectTime];
    // new lotto = PlayerInfo[targetid][pLottoNr];
    new deaths = PlayerInfo[targetid][pDeaths];
    // new fishes = PlayerInfo[targetid][pFishes];
    // new bigfish = PlayerInfo[targetid][pBiggestFish];
    // new crimes = PlayerInfo[targetid][pCrimes];
    // new arrests = PlayerInfo[targetid][pArrested];
    new drugs = PlayerInfo[targetid][pDrugs];
    new mats = PlayerInfo[targetid][pMats];
    // new boxdrugs = PlayerInfo[targetid][pBoxDrugs];
    // new boxmats = PlayerInfo[targetid][pBoxMats];
    // new wanted = WantedLevel[targetid];
    // new adminlevel = PlayerInfo[targetid][pAdmin];
    new level = PlayerInfo[targetid][pLevel];
    new exp = PlayerInfo[targetid][pExp];
    new kills = PlayerInfo[targetid][pKills];
    new pnumber = PlayerInfo[targetid][pPnumber];
    new account = PlayerInfo[targetid][pAccount];
    new nxtlevel = PlayerInfo[targetid][pLevel]+1;
    new expamount = nxtlevel*levelexp;
    new costlevel = nxtlevel*levelcost;//10k for testing purposes
    new Float:shealth = PlayerInfo[targetid][pSHealth];
    new Float:health;
    new name[MAX_PLAYER_NAME];
    GetPlayerName(targetid, name, sizeof(name));
    GetPlayerHealth(targetid,health);
    new Float:px,Float:py,Float:pz;
    new Float:plHealth, Float:plArmour;
    GetPlayerPos(targetid, px, py, pz);
    new plIP[20];
    GetPlayerHealth(targetid,plHealth);
    GetPlayerArmour(targetid,plArmour);
    GetPlayerIp(playerid,plIP,sizeof(plIP));

    new string1[200],string2[200],string3[200],string4[200],string5[200],string6[200],string7[200],string8[200],string9[200],string10[200],string11[200],string12[200],string13[200],string14[200],string15[200],string16[200],string17[200],string18[200],string19[200],string20[200],string21[200],string22[200],string23[200],string24[200],string25[200],string26[200],rest[1500];
    format(string1, sizeof string1, "{00E500}======[Stats von %s]======{FFFFFF}", name);
    format(string2, sizeof string2, "{FF0000}------------[Allgemeines]------------{FFFFFF}");
    format(string3, sizeof string3, " Level\t\t\t\t[%d]", level);
    format(string4, sizeof string4, " PayDay\t\t\t\t[in %d Minuten]", 45-PlayerInfo[targetid][pPlayMinutes]);
    format(string5, sizeof string5, " Telefonnummer\t\t\t[%d]", pnumber);
    format(string6, sizeof string6, " Verheiratet mit\t\t\t[%s]", married);
    format(string7, sizeof string7, " Spawnenergie\t\t\t[%.1f]", shealth+50.0);
    format(string8, sizeof string8, " Geschlecht\t\t\t[%s]", atext);
    format(string9, sizeof string9, " Herkunft\t\t\t[%s]", otext);
    format(string10, sizeof string10, " Alter\t\t\t\t[%d]", age);
    format(string11, sizeof string11, " Job\t\t\t\t[%s]\n", jtext);
    format(string12, sizeof string12, "{FF0000}------------[Fraktion/Gang]------------{FFFFFF}");
    format(string13, sizeof string13, " Team\t\t\t\t[%s]", ttext);
    format(string14, sizeof string14, " Organisation\t\t\t[%s]", ftext);
    format(string15, sizeof string15, " Rang\t\t\t\t[%s]", rtext);
    format(string16, sizeof string16, " Familie\t\t\t\t[%s]", f2text);
    format(string17, sizeof string17, " Zuschuss\t\t\t[%d$]",PlayerInfo[targetid][pGehalt]);
    format(string18, sizeof string18, "{FF0000}------------[Besitz]------------{FFFFFF}");
    format(string19, sizeof string19, " Premium Rang\t\t\t[%s]", drank);
    format(string20, sizeof string20, " Morde & Tode\t\t\t[%d / %d]", kills,deaths);
    format(string21, sizeof string21, " Bargeld\t\t\t[%d]", cash);
    format(string22, sizeof string22, " Bankkonto\t\t\t[%d]", account);
    format(string23, sizeof string23, " Materialien/Drogen\t\t[%d / %d]", mats, drugs);
    format(string24, sizeof string24, " Verwarnungen\t\t\t[%d]", PlayerInfo[targetid][pWarns]);
    format(string25, sizeof string25, " Respektpunkte\t\t\t[%d / %d]", exp, expamount);
    format(string26, sizeof string26, " Lv. Up kosten\t\t\t[%d $]", costlevel);
    format(rest, sizeof rest, "%s\n\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s", string1,string2,string3,string4,string5,string6,string7,string8,string9,string10,string11,string12,string13,string14,string15,string16,string17,string18,string19,string20,string21,string22,string23,string24,string25,string26);
    ShowPlayerDialog(playerid,30,DIALOG_STYLE_MSGBOX,"Statstik",rest,"Ok","");

    }
    return 1;
    }


    Nur wenn man es ganz füllt