/stats Server Restart? :(

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
  • Hallo


    Ich hab mein /stats ShowPlayerDialog zu SendClientMessage gemacht.
    Jetzt alles funzt richtig nur mein Server Restartet.


    Zeilen:
    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],rest[1500];
    format(string1, sizeof string1, "Statistiken von {00FFFF}%s", name);
    format(string2, sizeof string2, "{00FFFF}Daten:");
    format(string3, sizeof string3, "{00FFFF}Level {FFFFFF}[%d] {00FFFF}Geschlecht {FFFFFF}[%s] {00FFFF}Alter {FFFFFF}[%d] {00FFFF}Spawnhealth {FFFFFF}[%.1f] {00FFFF}Verheiratet mit {FFFFFF}[%s] {00FFFF}Telefonnummer {FFFFFF}[%d]", level,atext,age,otext,shealth+50.0,married,pnumber);
    format(string4, sizeof string4, "{00FFFF}Größter Fisch {FFFFFF}[%d] {00FFFF}Verbrechen {FFFFFF}[%d] {00FFFF}Gefängniszeiten {FFFFFF}[%d] {00FFFF}Kosten für nächstes Level {FFFFFF}[%d$] {00FFFF}Spielminuten seit Login {FFFFFF}[%d / %d]", bigfish,crimes,arrests,costlevel,PlayerInfo[targetid][pMinutesSinceLogin],PlayerInfo[targetid][pGesamtMinutes]);
    format(string5, sizeof string5, "{00FFFF}Kreditraten verbleibend {FFFFFF}[%d] {00FFFF}Summe {FFFFFF}[%d] {00FFFF}Spielminuten bis Payday {FFFFFF}[%d]", PlayerInfo[targetid][pPlayerKreditDauer], PlayerInfo[targetid][pPlayerKredit], 60-PlayerInfo[targetid][pPlayMinutes]);
    format(string6, sizeof string6, "{00FFFF}Besitztum");
    format(string7, sizeof string7, "{00FFFF}Premium Rang [%s] {00FFFF}Spielzeit {FFFFFF}[%d] {00FFFF}Lottonummer [%d] {00FFFF}Wantedlevel {FFFFFF}[%d] {00FFFF}Krankheit {FFFFFF}[%s] {00FFFF}Gefangene Fische [%d] {00FFFF}Kills [%d] {00FFFF}Deaths [%d]", drank,ptime,lotto,wanted,dtext,fishes,kills,deaths);
    format(string8, sizeof string8, "{00FFFF}Bargeld {FFFFFF}[%d$] {00FFFF}Bankkonto {FFFFFF}[%d$] {00FFFF}Drogen {FFFFFF}[%d] {00FFFF}Materialien {FFFFFF}[%d] {00FFFF}Box Materialien {FFFFFF}[%d] {00FFFF}Box Drogen {FFFFFF}[%d] {00FFFF}Respektpunkte {FFFFFF}[%d / %d]", cash,account,drugs,mats,boxmats,boxdrugs,exp,expamount);
    format(string9, sizeof string9, "{00FFFF}Fraktion & Job");
    format(string10, sizeof string10, "{00FFFF}Fraktion: {FFFFFF}[%s] {00FFFF}Organisation {FFFFFF}[%s] {00FFFF}Rang {FFFFFF}[%s] {00FFFF}Familie {FFFFFF}[%s] {00FFFF}Job {FFFFFF}[%s] {00FFFF}Payday: {FFFFFF}[%d$] {00FFFF}Fraktionsmaterialien: {FFFFFF}[%d]", ttext,ftext,rtext,f2text,jtext,PlayerInfo[targetid][pGehalt], FrakMatsHolding[targetid]);
    format(string11, sizeof string11, "{00FFFF}Informationen");
    format(string12, sizeof string12, "{00FFFF}Hausschlüssel [%d] {00FFFF}Geschäftsschlüssel [%d] {00FFFF}Interior [%d] {00FFFF}Gebäude [%d]", housekey,bizkey,intir,local);
    format(string13, sizeof string13, "{00FFFF}Zeit bis zum nächsten Flug {FFFFFF}[%d] (Job Pilot) {00FFFF}Zeit bis zur nächsten Fahrt {FFFFFF}[%d] (Job Müllmann)", PlayerInfo[targetid][pFlugTime]/60, PlayerInfo[targetid][pMulltime]/60);
    format(string14, sizeof string14, "{00FFFF}Lebenspunkte {FFFFFF}[%.2f] {00FFFF}Schutzweste {FFFFFF}[%.2f] {00FFFF}Ping {FFFFFF}[%d] {00FFFF}Verwarnungen {FFFFFF}[%d]", plHealth,plArmour,GetPlayerPing(targetid),PlayerInfo[targetid][pWarns]);
    format(rest, sizeof rest, "%s\n\n\n%s\n%s\n%s\n%s\n\n%s\n%s\n%s\n\n%s\n%s\n\n%s\n%s\n%s\n%s", string1,string2,string3,string4,string5,string6,string7,string8,string9,string10,string11,string12,string13,string14);
    SendClientMessage(playerid, COLOR_WHITE, rest);
    }
    return 1;
    }



    MfG

  • ----------
    Loaded log file: "server_log.txt".
    ----------


    SA-MP Dedicated Server
    ----------------------
    v0.3d, (C)2005-2011 SA-MP Team


    [19:32:17]
    [19:32:17] Server Plugins
    [19:32:17] --------------
    [19:32:17] Loading plugin: streamer.dll
    [19:32:17] Failed (plugins/streamer.dll: invalid ELF header)
    [19:32:17] Loading plugin: streamer.so
    [19:32:17]


    *** Streamer Plugin v2.6 by Incognito loaded ***


    [19:32:17] Loaded.
    [19:32:17] Loading plugin: audio.so
    [19:32:17]
    *** Audio Plugin v0.4 by Incognito loaded ***


    [19:32:17] Loaded.
    [19:32:17] Loading plugin: sscanf.so
    [19:32:17]


    [19:32:17] ===============================


    [19:32:17] sscanf plugin loaded.


    [19:32:17] (c) 2009 Alex "Y_Less" Cole


    [19:32:17] ===============================


    [19:32:17] Loaded.
    [19:32:17] Loaded 3 plugins.


    [19:32:17]
    [19:32:17] Ban list
    [19:32:17] --------
    [19:32:17] Loaded: samp.ban
    [19:32:17]
    [19:32:17]
    [19:32:17] Filterscripts
    [19:32:17] ---------------
    [19:32:17] Loaded 0 filterscripts.


    [19:32:17] *** Streamer Plugin: Obsolete or invalid native "Streamer_RegisterInterface" found (script needs to be recompiled with the latest include file)
    [19:32:17] *** Streamer Plugin: Obsolete or invalid native "Streamer_AddPlayer" found (script needs to be recompiled with the latest include file)
    [19:32:17] *** Streamer Plugin: Obsolete or invalid native "Streamer_RemovePlayer" found (script needs to be recompiled with the latest include file)
    [19:32:17] *** Streamer Plugin: Obsolete or invalid native "Streamer_VerifyPickup" found (script needs to be recompiled with the latest include file)
    [19:32:17] *** Streamer Plugin: Obsolete or invalid native "Streamer_VerifyCheckpoint" found (script needs to be recompiled with the latest include file)
    [19:32:17] BizzInfo:0 Owner:The State Message:Gunshop LA Entfee:150 Till:150 Products:10007448/500 Interior:6.


    [19:32:17] BizzInfo:1 Owner:The State Message:Gunshop SF Entfee:2 Till:0 Products:408/500 Interior:7.


    [19:32:17] BizzInfo:2 Owner:The State Message:LA Restaurang Entfee:500 Till:0 Products:500/500 Interior:1.


    [19:32:17] BizzInfo:3 Owner:The State Message:Yakuza Gunshop Entfee:99 Till:0 Products:487/500 Interior:6.


    [19:32:17] BizzInfo:4 Owner:The State Message:Obi Baumarkt Entfee:500 Till:1091 Products:99654/100000 Interior:4.


    [19:32:17] SBizzInfo:0 Owner:[GeS]LuKaS.[136] Message:Autohaus SF Entfee:500 Till:1460077 Products:12/100 Interior:0.


    [19:32:17] SBizzInfo:1 Owner:The State Message:Autohaus SF Entfee:500 Till:10 Products:12/100 Interior:0.


    [19:32:17] SBizzInfo:2 Owner:[GeS]LuKaS.[136] Message:Autohaus SF Entfee:500 Till:24512 Products:12/100 Interior:0.


    [19:32:17] SBizzInfo:3 Owner:[GeS]LuKaS.[136] Message:Autohaus SF Entfee:500 Till:2280120 Products:12/100 Interior:0.


    [19:32:17] SBizzInfo:4 Owner:[GeS]LuKaS.[136] Message:Autohaus SF Entfee:500 Till:12 Products:12/100 Interior:0.


    [19:32:17] SBizzInfo:5 Owner:[GeS]LuKaS.[136] Message:Autohaus SF Entfee:500 Till:90178 Products:-15/100 Interior:0.


    [19:32:17] SBizzInfo:6 Owner:[GeS]LuKaS.[136] Message:Autohaus SF Entfee:500 Till:12 Products:12/100 Interior:0.


    [19:32:17] SBizzInfo:7 Owner:[GeS]LuKaS.[136] Message:Autohaus SF Entfee:500 Till:12 Products:12/100 Interior:0.


    [19:32:17] SBizzInfo:8 Owner:[GeS]LuKaS.[136] Message:Autohaus SF Entfee:500 Till:412 Products:-12/100 Interior:0.


    [19:32:17] GangZone 0 loadad: 1677.387939,-2164.481933,1870.788208,-2007.005126,1858.253662,-2096.573974,13.546899,5
    [19:32:17] GangZone 1 loadad: 630.636413,-1587.785766,779.336669,-1401.087890,723.152221,-1482.819702,1.968799,6
    [19:32:17] GangZone 2 loadad: 2524.522460,2196.688720,2664.685791,2450.328613,2587.406982,2309.241699,17.822200,13
    [19:32:17] GangZone 3 loadad: 0.000000,2196.688720,2664.685791,2450.328613,2587.406982,2309.241699,17.822200,13
    [19:32:17] GangZone 4 loadad: 0.000000,2196.688720,2664.685791,2450.328613,2587.406982,2309.241699,17.822200,13
    [19:32:17] GangZone 5 loadad: 0.000000,2196.688720,2664.685791,2450.328613,2587.406982,2309.241699,17.822200,13
    [19:32:17] GangZone 6 loadad: 0.000000,2196.688720,2664.685791,2450.328613,2587.406982,2309.241699,17.822200,13
    [19:32:17] AllowAdminTeleport() : function is deprecated. Please see OnPlayerClickMap()
    [19:32:17] Pickups Max = 2048, Current Pickups = 436
    [19:32:17] _______________________________________
    [19:32:17] Das Script wurde Vollst�ndig geladen!
    [19:32:17] Script Edit by KoLLeGaH
    [19:32:17] _______________________________________
    [19:32:17]
    [19:32:17] Number of vehicle models: 67
    [19:32:27] Incoming connection: 178.1.101.47:51678
    [19:32:27] [join] [GeS]KoLLeGaH.[187] has joined the server (0:178.1.101.47)
    [19:32:33] [GeS]KoLLeGaH.[187] has logged in.
    [19:32:46] Administrator {FFFFFF}[GeS]KoLLeGaH.[187] {CC0000}hat den Chat gel�scht!
    [19:33:04] [chat] [[GeS]KoLLeGaH.[187]]: 7MOTOR
    [19:35:10] [part] [GeS]KoLLeGaH.[187] has left the server (0:1)


    Hier


    MfG

  • Okey :)


    Function Stats(playerid,targetid)
    {
    if(IsPlayerConnected(targetid))
    {
    new cash = GetPlayerMoney(targetid);
    new atext[20];
    if(PlayerInfo[targetid][pSex] == 1) { atext = "{99FFFF}Männlich"; }
    else if(PlayerInfo[targetid][pSex] == 2) { atext = "{FF00FF}Weiblich"; }
    new otext[20];
    if(PlayerInfo[targetid][pOrigin] == 1) { otext = "Los Santos"; }
    else if(PlayerInfo[targetid][pOrigin] == 2) { otext = "San Fierro"; }
    else if(PlayerInfo[targetid][pOrigin] == 3) { otext = "Las Venturas"; }
    new ttext[20];
    new leader = PlayerInfo[targetid][pLeader];
    new member = PlayerInfo[targetid][pMember];
    if(gTeam[targetid] == 3 || gTeam[targetid] == 4) { ttext = "Zivilist"; }
    else
    {
    if(leader != 0) ttext = Fracs[leader-1];
    if(member != 0) ttext = Fracs[member-1];
    }
    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 = "-"; }
    new ftext[20];
    if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4)
    { ftext = "Sanitärer"; }
    else if(PlayerInfo[targetid][pMember] == 5 || PlayerInfo[targetid][pLeader] == 5)
    { ftext = "La Cosa Nostra"; }
    else if(PlayerInfo[targetid][pMember] == 6 || PlayerInfo[targetid][pLeader] == 6)
    { ftext = "Yakuza"; }
    else if(PlayerInfo[targetid][pMember] == 11 || PlayerInfo[targetid][pLeader] == 11)
    { ftext = "Fahrlehrer"; }
    else
    { ftext = "-"; }
    new f2text[20];
    new rtext[64];
    if(gTeam[targetid] == 5 || PlayerInfo[targetid][pFMember] < 255)//The 2 Organisations
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Picciotto"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Soldati"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Capo"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Consigliere"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Capo Bastone"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Capo die Capi"; }
    else { rtext = "Bambino"; }
    }
    else if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1)// Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Cadet"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Officer"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Sergeant"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Lieutenant"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Captain"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Chief"; }
    else { rtext = "Cadet"; }
    }
    else if(PlayerInfo[targetid][pMember] == 2 || PlayerInfo[targetid][pLeader] == 2)//FBI Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "P-Agent"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "S-Agent"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "SSA"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "SUSA"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "D-Direktor"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Direktor"; }
    else { rtext = "Cadet"; }
    }
    else if(PlayerInfo[targetid][pMember] == 19 || PlayerInfo[targetid][pLeader] == 19)//RS
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "-"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "-"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "-"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "-"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "-"; }
    else if(PlayerInfo[targetid][pRank] == 6 || PlayerInfo[targetid][pRank] == 12) { rtext = "-"; }
    else { rtext = "rt5Neuling"; }
    }
    else if(PlayerInfo[targetid][pMember] == 21 || PlayerInfo[targetid][pLeader] == 21)//WHEELMEN
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "-"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "-"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "-"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "-"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "-"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "-"; }
    else { rtext = "Anfänger"; }
    }
    else if(PlayerInfo[targetid][pMember] == 3 || PlayerInfo[targetid][pLeader] == 3)//NG Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Soldat"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Gefreiter"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Feldwebel"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Leutnant"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Oberst"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "General"; }
    else { rtext = "Private"; }
    }
    else if(PlayerInfo[targetid][pMember] == 7 || PlayerInfo[targetid][pLeader] == 7)
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Pressesprecher"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Verteidigungsminister"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Finanzminister"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Innen-/Außenminister"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Vize-Präsident"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Präsident"; }
    else { rtext = "Private"; }
    }
    else if(PlayerInfo[targetid][pMember] == 8 || PlayerInfo[targetid][pLeader] == 8)//Hitman Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Azubi"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Söldner"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Attentäter"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Massenmörder"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Vize-Direktor"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Direktor"; }
    else { rtext = "Praktikant"; }
    }
    else if(PlayerInfo[targetid][pMember] == 21 || PlayerInfo[targetid][pLeader] == 21)
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Neuling"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Söldner"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Attentäter"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Massenmörder"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Vize-Direktor"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Direktor"; }
    else { rtext = "Praktikant"; }
    }
    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 = "Local Reporter"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Local Editor"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Network Anchor"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Network Editor"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Network Producer"; }
    else { rtext = "Intern"; }
    }
    else if(PlayerInfo[targetid][pMember] == 10 || PlayerInfo[targetid][pLeader] == 10)//Taxi Company Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Trainee"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Taxi Rookie"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Cabbie"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Dispatcher"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Shift Supervisor"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Taxi Company Owner"; }
    else { rtext = "Trainee"; }
    }
    else if(IsAnInstructor(targetid))//Driving/Flying School Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Trainee"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Instructor"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Senior Instructor"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Manager"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Under Boss"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Boss"; }
    else { rtext = "Trainee"; }
    }
    else
    {
    rtext = "-";
    }
    new jtext[20];
    if(PlayerInfo[targetid][pJob] == 1) { jtext = "Detektiv"; }
    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] == 18) { jtext = "Angler"; }
    else if(PlayerInfo[targetid][pJob] == 19) { jtext = "Pizzalieferer"; }
    else { jtext = "-"; }
    new drank[20];
    if(PlayerInfo[targetid][pDonateRank] == 1) { drank = "Power User"; }
    else if(PlayerInfo[targetid][pDonateRank] >= 2) { drank = "Donater"; }
    else if(PlayerInfo[targetid][pDonateRank] >= 3) { drank = "ÜBERSKILLER"; }
    else { drank = "-"; }
    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 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 housekey = PlayerInfo[targetid][pPhousekey];
    new bizkey = PlayerInfo[targetid][pPbiskey];
    new intir = PlayerInfo[targetid][pInt];
    new local = PlayerInfo[targetid][pLocal];
    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);
    GetPlayerHealth(targetid,plHealth);
    GetPlayerArmour(targetid,plArmour);
    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],rest[1500];
    format(string1, sizeof string1, "Statistiken von {00FFFF}%s", name);
    format(string2, sizeof string2, "{00FFFF}Daten:");
    format(string3, sizeof string3, "{00FFFF}Level {FFFFFF}[%d] {00FFFF}Geschlecht {FFFFFF}[%s] {00FFFF}Alter {FFFFFF}[%d] {00FFFF}Spawnhealth {FFFFFF}[%.1f] {00FFFF}Verheiratet mit {FFFFFF}[%s] {00FFFF}Telefonnummer {FFFFFF}[%d]", level,atext,age,otext,shealth+50.0,married,pnumber);
    format(string4, sizeof string4, "{00FFFF}Größter Fisch {FFFFFF}[%d] {00FFFF}Verbrechen {FFFFFF}[%d] {00FFFF}Gefängniszeiten {FFFFFF}[%d] {00FFFF}Kosten für nächstes Level {FFFFFF}[%d$] {00FFFF}Spielminuten seit Login {FFFFFF}[%d / %d]", bigfish,crimes,arrests,costlevel,PlayerInfo[targetid][pMinutesSinceLogin],PlayerInfo[targetid][pGesamtMinutes]);
    format(string5, sizeof string5, "{00FFFF}Kreditraten verbleibend {FFFFFF}[%d] {00FFFF}Summe {FFFFFF}[%d] {00FFFF}Spielminuten bis Payday {FFFFFF}[%d]", PlayerInfo[targetid][pPlayerKreditDauer], PlayerInfo[targetid][pPlayerKredit], 60-PlayerInfo[targetid][pPlayMinutes]);
    format(string6, sizeof string6, "{00FFFF}Besitztum");
    format(string7, sizeof string7, "{00FFFF}Premium Rang [%s] {00FFFF}Spielzeit {FFFFFF}[%d] {00FFFF}Lottonummer [%d] {00FFFF}Wantedlevel {FFFFFF}[%d] {00FFFF}Krankheit {FFFFFF}[%s] {00FFFF}Gefangene Fische [%d] {00FFFF}Kills [%d] {00FFFF}Deaths [%d]", drank,ptime,lotto,wanted,dtext,fishes,kills,deaths);
    format(string8, sizeof string8, "{00FFFF}Bargeld {FFFFFF}[%d$] {00FFFF}Bankkonto {FFFFFF}[%d$] {00FFFF}Drogen {FFFFFF}[%d] {00FFFF}Materialien {FFFFFF}[%d] {00FFFF}Box Materialien {FFFFFF}[%d] {00FFFF}Box Drogen {FFFFFF}[%d] {00FFFF}Respektpunkte {FFFFFF}[%d / %d]", cash,account,drugs,mats,boxmats,boxdrugs,exp,expamount);
    format(string9, sizeof string9, "{00FFFF}Fraktion & Job");
    format(string10, sizeof string10, "{00FFFF}Fraktion: {FFFFFF}[%s] {00FFFF}Organisation {FFFFFF}[%s] {00FFFF}Rang {FFFFFF}[%s] {00FFFF}Familie {FFFFFF}[%s] {00FFFF}Job {FFFFFF}[%s] {00FFFF}Payday: {FFFFFF}[%d$] {00FFFF}Fraktionsmaterialien: {FFFFFF}[%d]", ttext,ftext,rtext,f2text,jtext,PlayerInfo[targetid][pGehalt], FrakMatsHolding[targetid]);
    format(string11, sizeof string11, "{00FFFF}Informationen");
    format(string12, sizeof string12, "{00FFFF}Hausschlüssel [%d] {00FFFF}Geschäftsschlüssel [%d] {00FFFF}Interior [%d] {00FFFF}Gebäude [%d]", housekey,bizkey,intir,local);
    format(string13, sizeof string13, "{00FFFF}Zeit bis zum nächsten Flug {FFFFFF}[%d] (Job Pilot) {00FFFF}Zeit bis zur nächsten Fahrt {FFFFFF}[%d] (Job Müllmann)", PlayerInfo[targetid][pFlugTime]/60, PlayerInfo[targetid][pMulltime]/60);
    format(string14, sizeof string14, "{00FFFF}Lebenspunkte {FFFFFF}[%.2f] {00FFFF}Schutzweste {FFFFFF}[%.2f] {00FFFF}Ping {FFFFFF}[%d] {00FFFF}Verwarnungen {FFFFFF}[%d]", plHealth,plArmour,GetPlayerPing(targetid),PlayerInfo[targetid][pWarns]);
    format(rest, sizeof rest, "%s\n\n\n%s\n%s\n%s\n%s\n\n%s\n%s\n%s\n\n%s\n%s\n\n%s\n%s\n%s\n%s", string1,string2,string3,string4,string5,string6,string7,string8,string9,string10,string11,string12,string13,string14);
    SendClientMessage(playerid, COLOR_WHITE, rest);
    }
    return 1;
    }


    MfG

  • Dir ist bewusst das du im Normalen Chat keinen 1500 String ausgeben kannst? (Der Chat unterstützt nur 128 Zeichen).
    Desweiteren kannst du (bin ich mir jetzt nich sicher) kein \n im Normalen Chat benutzen...


    mach es lieber so:
    format(string, sizeof(string), "TEXT");
    SendClientMessage(playerid, COLOR_WHITE, string);

    Da du den String gleich nach dem erstellen ausgibst, kannst du die Varriable mehrmals benutzen ohne das du dann am ende new string2125[200]; hast.


    LG, Zunno ;)