Stats spinnen

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 community,


    wenn ich /stats mache kommt immer nur das letzte...


    So sieht mein Code aus:


    stock Statszeigen(Wer,Wem)
    {


    new Leadername[40];
    if(SInfo[Wer][pLeader] == 0) { Leadername = "---"; }
    if(SInfo[Wer][pLeader] == 1) { Leadername = "SAPD"; }
    if(SInfo[Wer][pLeader] == 2) { Leadername = "Bundeswehr"; }
    if(SInfo[Wer][pLeader] == 3) { Leadername = "Fahrschule"; }
    if(SInfo[Wer][pLeader] == 4) { Leadername = "Vagos"; }
    if(SInfo[Wer][pLeader] == 5) { Leadername = "Ballas"; }
    if(SInfo[Wer][pLeader] == 6) { Leadername = "Grove Street"; }
    if(SInfo[Wer][pLeader] == 7) { Leadername = "LCN"; }
    if(SInfo[Wer][pLeader] == 8) { Leadername = "Ordnungsamt"; }
    if(SInfo[Wer][pLeader] == 9) { Leadername = "Rettungsdienst"; }
    if(SInfo[Wer][pLeader] == 10) { Leadername = "Yakuza"; }
    if(SInfo[Wer][pLeader] == 11) { Leadername = "Hitman"; }
    if(SInfo[Wer][pLeader] == 12) { Leadername = "Terroristen"; }
    if(SInfo[Wer][pLeader] == 13) { Leadername = "Russische Mafia"; }
    if(SInfo[Wer][pLeader] == 14) { Leadername = "CNN"; }
    if(SInfo[Wer][pLeader] == 15) { Leadername = "Fast and the Furious"; }
    if(SInfo[Wer][pLeader] == 16) { Leadername = "F.B.I"; }


    new Membername[40];
    if(SInfo[Wer][pMember] == 0) { Membername = "---"; }
    if(SInfo[Wer][pMember] == 1) { Membername = "SAPD"; }
    if(SInfo[Wer][pMember] == 2) { Membername = "Bundeswehr"; }
    if(SInfo[Wer][pMember] == 3) { Membername = "Fahrschule"; }
    if(SInfo[Wer][pMember] == 4) { Membername = "Vagos"; }
    if(SInfo[Wer][pMember] == 5) { Membername = "Ballas"; }
    if(SInfo[Wer][pMember] == 6) { Membername = "Grove Street"; }
    if(SInfo[Wer][pMember] == 7) { Membername = "LCN"; }
    if(SInfo[Wer][pMember] == 8) { Membername = "Ordnungsamt"; }
    if(SInfo[Wer][pMember] == 9) { Membername = "Rettungsdienst"; }
    if(SInfo[Wer][pMember] == 10) { Membername = "Yakuza"; }
    if(SInfo[Wer][pMember] == 11) { Membername = "Hitman"; }
    if(SInfo[Wer][pMember] == 12) { Membername = "Terroristen"; }
    if(SInfo[Wer][pMember] == 13) { Membername = "Russische Mafia"; }
    if(SInfo[Wer][pMember] == 14) { Membername = "CNN"; }
    if(SInfo[Wer][pMember] == 15) { Membername = "Fast and the Furious"; }
    if(SInfo[Wer][pMember] == 16) { Membername = "F.B.I"; }


    new Respektlevel = 4;
    new sstr0[65],sstr1[65],sstr2[65],sstr3[65],sstr4[65],sstr5[65],sstr6[65],sstr7[65],sstr8[65],sstr9[65],sstr10[65],sstr11[65],sstr12[65],sstr13[65],sstr14[65],sstr15[65],sstrall16[600];
    GetPlayerName(Wer,pname,sizeof(pname));
    format(sstr0,sizeof(sstr0),"%s",pname);
    format(sstr1,sizeof(sstr1),"{FF5A00}Personalien: {FEFEFE}Geschlecht: %s",SInfo[Wer][pGeschlecht]);//Geschlecht
    format(sstr1,sizeof(sstr2)," {FEFEFE}Alter: %d",SInfo[Wer][pAlter]);//Alter
    format(sstr1,sizeof(sstr3)," {FEFEFE}Level: %d Respekt: %d/%d",SInfo[Wer][pLevel],SInfo[Wer][pRespekt],SInfo[Wer][pLevel]*Respektlevel);//Level + Respekt
    format(sstr1,sizeof(sstr4)," {FEFEFE}PayDay: %d / 60",SInfo[Wer][pPayday]);//Payday
    format(sstr1,sizeof(sstr5),"{FF5A00}Berufe: {FEFEFE}Leader: %s Member: %s",Leadername,Membername);//Fraktion
    format(sstr1,sizeof(sstr6)," {FEFEFE}Rang: %s",SInfo[Wer][pRang]);//Fraktionsrang
    format(sstr1,sizeof(sstr7)," {FEFEFE}Nebenjob: %s",SInfo[Wer][pJob]);//Nebenjob
    format(sstr1,sizeof(sstr8),"{FF5A00}Finanzen: {FEFEFE}Bankkonto: %d Bargeld: %d",SInfo[Wer][pBankAccount],SInfo[Wer][pGeld]);//Finanzen
    format(sstr1,sizeof(sstr9)," {FEFEFE}Verdientes Jobgeld: %d",SInfo[Wer][pJobgeld]);//Jobgeld
    format(sstr1,sizeof(sstr10)," {FEFEFE}Fraktionsgehalt: %d",SInfo[Wer][pLohn]);//Fraktionsgeld
    format(sstr1,sizeof(sstr11),"{FF5A00}Statistik: {FEFEFE}Morde: %d",SInfo[Wer][pMord]);//Morde
    format(sstr1,sizeof(sstr12)," {FEFEFE}Gestorben: %d",SInfo[Wer][pGestorben]);//Gestorben
    format(sstr1,sizeof(sstr13)," {FEFEFE}Knast: %d",SInfo[Wer][pKnast]);//Knast
    format(sstr1,sizeof(sstr14)," {FEFEFE}Wanteds: %d",SInfo[Wer][pWantedpunkte]);//Wanteds
    format(sstr1,sizeof(sstr15)," {FEFEFE}Verwarnungen: %d / 3",SInfo[Wer][pWarn]);//Warns
    format(sstrall16,sizeof(sstrall16),"%s\n%s\n%s\n%s\n%s\n%s\n\n%s\n%s\n%s\n\n%s\n%s\n%s\n%s\n%s",sstr1,sstr2,sstr3,sstr4,sstr5,sstr6,sstr7,sstr8,sstr9,sstr10,sstr11,sstr12,sstr13,sstr14,sstr15,sstrall16);
    ShowPlayerDialog(Wem,DIALOG_STATS,DIALOG_STYLE_MSGBOX,sstr0,sstrall16,"Schließen","");
    return 1;
    }



    bitte helft mir weiter


    LG