/stats im Dialog

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 Jungs könnt Ihr mir eventuell helfen?
    Ich habe ein Problem, und zwar lässt sich bei mir /stats im Dialog nicht richtig machen.
    Ich habe es schon 15 mal probiert. Falls es einer schnell kann.
    public ShowStats(playerid,targetid)
    {
    if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
    {
    new cash = PlayerMoney[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 = "USA"; }
    else if(PlayerInfo[targetid][pOrigin] == 2) { otext = "Europa"; }
    else if(PlayerInfo[targetid][pOrigin] == 3) { otext = "Asien"; }
    else
    {
    otext = "Unbekannt";
    }
    new ttext[20];
    if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4) { ttext = "Medic"; }
    else if(gTeam[targetid] == 3 || gTeam[targetid] == 4) { ttext = "Civilian"; }
    else if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1) { ttext = "LS Polizist"; }
    else if(PlayerInfo[targetid][pMember] == 2 || PlayerInfo[targetid][pLeader] == 2) { ttext = "FBI Agent"; }
    else if(PlayerInfo[targetid][pMember] == 3 || PlayerInfo[targetid][pLeader] == 3) { ttext = "National Guard"; }
    else if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4) { ttext = "Firemen/Paramedic"; }
    else if(PlayerInfo[targetid][pMember] == 5 || PlayerInfo[targetid][pLeader] == 5) { ttext = "LCN"; }
    else if(PlayerInfo[targetid][pMember] == 6 || PlayerInfo[targetid][pLeader] == 6) { ttext = "Ballas"; }
    else if(PlayerInfo[targetid][pMember] == 7 || PlayerInfo[targetid][pLeader] == 7) { ttext = "Mayor"; }
    else if(PlayerInfo[playerid][pHitman] == 1 || PlayerInfo[playerid][pHitman] == 2) { ttext = "Civilian"; }
    else if(PlayerInfo[targetid][pMember] == 9 || PlayerInfo[targetid][pLeader] == 9) { ttext = "News Reporter"; }
    else if(PlayerInfo[targetid][pMember] == 10 || PlayerInfo[targetid][pLeader] == 10) { ttext = "Taxi"; }
    else if(PlayerInfo[targetid][pMember] == 11 || PlayerInfo[targetid][pLeader] == 11) { ttext = "School Instructor"; }
    else if(PlayerInfo[targetid][pMember] == 12 || PlayerInfo[targetid][pLeader] == 12) { ttext = "Groove Street"; }
    else if(PlayerInfo[targetid][pMember] == 13 || PlayerInfo[targetid][pLeader] == 13) { ttext = "Yakuza"; }
    else if(PlayerInfo[targetid][pMember] == 14 || PlayerInfo[targetid][pLeader] == 14) { ttext = "ADAC"; }
    else if(PlayerInfo[targetid][pMember] == 15 || PlayerInfo[targetid][pLeader] == 15) { ttext = "Transporter"; }
    else if(PlayerInfo[targetid][pMember] == 16 || PlayerInfo[targetid][pLeader] == 16) { ttext = "Special Force"; }

    else if(PlayerInfo[targetid][pMember] == 18 || PlayerInfo[targetid][pLeader] == 18) { ttext = "San Trans"; }

    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 = "Nichts"; }
    new ftext[40];
    if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4)
    { ftext = "Paramedics"; }
    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 = "Ballas"; }
    else if(PlayerInfo[targetid][pMember] == 11 || PlayerInfo[targetid][pLeader] == 11)
    { ftext = "Fahrschule"; }
    else if(PlayerInfo[targetid][pMember] == 12 || PlayerInfo[targetid][pLeader] == 12)
    { ftext = "Groove Street"; }
    else if(PlayerInfo[targetid][pMember] == 15 || PlayerInfo[targetid][pLeader] == 15)
    { ftext = "The Transporter"; }
    else if(PlayerInfo[targetid][pMember] == 18 || PlayerInfo[targetid][pLeader] == 18)
    { ftext = "San Trans Family"; }
    else
    { ftext = "Nichts"; }
    new rtext[64];
    new member = PlayerInfo[targetid][pMember];
    new leader = PlayerInfo[targetid][pLeader];
    if(member == 13 || leader == 13)
    {
    if(PlayerInfo[targetid][pRank] == 6) { rtext = "Oyabun"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Komon"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Saiko"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Gashira"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Kyodai"; }
    else if(PlayerInfo[targetid][pRank] == 1) { rtext = "Wakashu"; }
    else { rtext = "Wakashu"; }
    }
    if(member == 5 || member == 6 || member == 12 || leader == 5|| leader == 6 || leader == 12)
    {
    if(PlayerInfo[targetid][pRank] == 6) { rtext = "Godfather"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Underboss"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Capo"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Soldier"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Associate"; }
    else if(PlayerInfo[targetid][pRank] == 1) { rtext = "Outsider"; }
    else { rtext = "Outsider"; }
    }
    else if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1)//PD 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] == 13 || PlayerInfo[targetid][pLeader] == 13)//Yakuza Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Anfänger"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Laie"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Yakuza"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Ausbilder"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Rechtehand"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Leader"; }
    else { rtext = "Anfänger"; }
    }
    else if(PlayerInfo[targetid][pMember] == 18 || PlayerInfo[targetid][pLeader] == 18)//PD Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Trainee"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Member"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Profi"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Manager"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Co-Inhaber"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Inhaber"; }
    else { rtext = "Trainee"; }
    }
    else if(PlayerInfo[targetid][pMember] == 2 || PlayerInfo[targetid][pLeader] == 2)//FBI Ranks
    {
    if(PlayerInfo[targetid][pRank] >= 1 &&PlayerInfo[targetid][pRank] <= 6) { rtext = "Director"; }
    else { rtext = "Intern"; }
    }
    else if(PlayerInfo[targetid][pMember] == 16 || PlayerInfo[targetid][pLeader] == 16)//Special Force Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Professional Staff"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Special Agent Trainee"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Special Agent"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Special Agent in Charge"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Assistant Director in Charge"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Director"; }
    else { rtext = "Intern"; }
    }
    else if(PlayerInfo[targetid][pMember] == 3 || PlayerInfo[targetid][pLeader] == 3)//NG Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Rekrut"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Gefreiter"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Unteroffizier"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Feldwebel"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Major"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "General"; }
    else { rtext = "Private"; }
    }
    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] == 15 || PlayerInfo[targetid][pLeader] == 15)//Transporter Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Transporter Trainee"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Transporter Rekrut"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Transporter Soldier"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Transporter Ass"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Transporter Manager"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Transporter Chef"; }
    else { rtext = "Transporter Trainee"; }
    }
    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 if(PlayerInfo[targetid][pMember] == 17 || PlayerInfo[targetid][pLeader] == 17)
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Bombenbastler"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Terrorist"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Attentäter"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Bombenführer"; }
    else { rtext = "Bombenbastler"; }
    }
    else
    {
    rtext = "Keinen";
    }
    new jtext[20];
    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 = "Drogen Dealer"; }
    else if(PlayerInfo[targetid][pJob] == 5) { jtext = "Car Jacker"; }
    else if(PlayerInfo[targetid][pJob] == 6) { jtext = "News Reporter"; }
    else if(PlayerInfo[targetid][pJob] == 7) { jtext = "Automechanicker"; }
    else if(PlayerInfo[targetid][pJob] == 8) { jtext = "Bodyguard"; }
    else if(PlayerInfo[targetid][pJob] == 9) { jtext = "Waffen Dealer"; }
    else if(PlayerInfo[targetid][pJob] == 10) { jtext = "Autoverkäufer"; }
    else if(PlayerInfo[targetid][pJob] == 14) { jtext = "Busfahrer"; }
    else if(PlayerInfo[targetid][pJob] == 15) { jtext = "Zeitungsjunge"; }
    else if(PlayerInfo[targetid][pJob] == 16) { jtext = "Trucker"; }
    else if(PlayerInfo[targetid][pJob] == 17) { jtext = "Farmer"; }
    else { jtext = "Keinen"; }
    new drank[20];
    if(PlayerInfo[targetid][pDonateRank] == 1) { drank = "Power User"; }
    else if(PlayerInfo[targetid][pDonateRank] >= 2) { drank = "Donater"; }
    else { drank = "Keinen"; }
    new married[20];
    strmid(married, PlayerInfo[targetid][pMarriedTo], 0, strlen(PlayerInfo[targetid][pMarriedTo]), 255);

    new pday = PlayerInfo[targetid][pPayDayTime];
    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 warrests = PlayerInfo[targetid][pWantedDeaths];
    new drugs = PlayerInfo[targetid][pDrugs];
    new mats = PlayerInfo[targetid][pMats];
    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 housekey = PlayerInfo[targetid][pPhousekey];
    new bizkey = PlayerInfo[targetid][pPbiskey];
    new intir = GetPlayerInterior(targetid);
    new local = PlayerInfo[targetid][pLocal];
    new Float:shealth = PlayerInfo[targetid][pSHealth];
    new adrugs = PlayerInfo[targetid][armordrugs];
    //new Float:health;
    new name[MAX_PLAYER_NAME];
    new joblock[256];
    new jobinvite[256];
    new maxpaydaytime;
    if(PlayerInfo[targetid][pDonateRank] >= 1)
    {
    maxpaydaytime = 50;
    }
    else
    {
    maxpaydaytime = 60;
    }
    GetPlayerName(targetid, name, sizeof(name));
    new nextlevel = PlayerInfo[targetid][pLevel]+1;
    new levelcost = nextlevel*5000;
    new Float:px,Float:py,Float:pz;
    GetPlayerPos(targetid, px, py, pz);
    new coordsstring[256], carstring[256];
    SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
    format(coordsstring, sizeof(coordsstring),"*** Account: %s ***",name);
    SendClientMessage(playerid, COLOR_WHITE,coordsstring);
    format(coordsstring, sizeof(coordsstring), "Level:[%d] Alter:[%d] SpawnHealth:[%.1f] Geld:[$%d] Bank:[$%d] Ph:[%d]", level,age,shealth+50, cash, account, pnumber);
    SendClientMessage(playerid, COLOR_WHITE,coordsstring);
    format(coordsstring, sizeof(coordsstring), "PremiumRang:[%s] HeiratMit:[%s] GespielteStunden:[%d] LottoNr:[%d] Krankheit:[%s] Levelkosten:[%d]", drank,married,ptime,lotto,dtext,levelcost);
    SendClientMessage(playerid, COLOR_WHITE,coordsstring);
    format(coordsstring, sizeof(coordsstring), "Fische:[%d] GrößterFisch:[%d] Verbrechen:[%d] GefängnisZeiten:[%d] WantedDeaths:[%d]", fishes,bigfish,crimes,arrests,warrests );
    SendClientMessage(playerid, COLOR_WHITE,coordsstring);
    format(coordsstring, sizeof(coordsstring), "Kills:[%d] Tode:[%d] Respekt:[%d/%d] WantedLevel:[%d] PayDay:[%d/%d]",kills,deaths,exp,expamount,wanted,pday,maxpaydaytime);
    SendClientMessage(playerid, COLOR_WHITE,coordsstring);
    format(coordsstring, sizeof(coordsstring), "Drogen:[%d] ArmorDrogen:[%d] Materialien:[%d] Team:[%s] Organisation:[%s] Rang:[%s] Job:[%s]",drugs,adrugs,mats,ttext,ftext,rtext,jtext);
    SendClientMessage(playerid, COLOR_WHITE,coordsstring);

    if(PlayerInfo[targetid][pWarns] > 0)
    {
    format(coordsstring, sizeof(coordsstring), "Warnungen: %d", PlayerInfo[targetid][pWarns]);
    SendClientMessage(playerid, COLOR_RED,coordsstring);
    }
    if(PlayerInfo[targetid][pJobLock] >= 1)
    {
    new string[256];
    if(PlayerInfo[targetid][pJobLockMonth] == 1) { string = "Januar"; }
    else if(PlayerInfo[targetid][pJobLockMonth] == 2) { string = "Februar"; }
    else if(PlayerInfo[targetid][pJobLockMonth] == 3) { string = "März"; }
    else if(PlayerInfo[targetid][pJobLockMonth] == 4) { string = "April"; }
    else if(PlayerInfo[targetid][pJobLockMonth] == 5) { string = "Mai"; }
    else if(PlayerInfo[targetid][pJobLockMonth] == 6) { string = "Juni"; }
    else if(PlayerInfo[targetid][pJobLockMonth] == 7) { string = "Juli"; }
    else if(PlayerInfo[targetid][pJobLockMonth] == 8) { string = "August"; }
    else if(PlayerInfo[targetid][pJobLockMonth] == 9) { string = "September"; }
    else if(PlayerInfo[targetid][pJobLockMonth] == 10) { string = "Oktober"; }
    else if(PlayerInfo[targetid][pJobLockMonth] == 11) { string = "November"; }
    else if(PlayerInfo[targetid][pJobLockMonth] == 12) { string = "Dezember"; }
    format(joblock, sizeof(joblock), "%d. %s", PlayerInfo[targetid][pJobLockDate], string);
    format(coordsstring, sizeof(coordsstring), "JobLock seit: [%s], Stunden [%d]",joblock, PlayerInfo[targetid][pJobLockHours]);
    SendClientMessage(playerid, COLOR_RED2,coordsstring);
    }
    if(PlayerInfo[targetid][pJobInvite] == 1)
    {
    new string[256];
    if(PlayerInfo[targetid][pJobInviteMonth] == 1) { string = "Januar"; }
    else if(PlayerInfo[targetid][pJobInviteMonth] == 2) { string = "Februar"; }
    else if(PlayerInfo[targetid][pJobInviteMonth] == 3) { string = "März"; }
    else if(PlayerInfo[targetid][pJobInviteMonth] == 4) { string = "April"; }
    else if(PlayerInfo[targetid][pJobInviteMonth] == 5) { string = "Mai"; }
    else if(PlayerInfo[targetid][pJobInviteMonth] == 6) { string = "Juni"; }
    else if(PlayerInfo[targetid][pJobInviteMonth] == 7) { string = "Juli"; }
    else if(PlayerInfo[targetid][pJobInviteMonth] == 8) { string = "August"; }
    else if(PlayerInfo[targetid][pJobInviteMonth] == 9) { string = "September"; }
    else if(PlayerInfo[targetid][pJobInviteMonth] == 10) { string = "Oktober"; }
    else if(PlayerInfo[targetid][pJobInviteMonth] == 11) { string = "November"; }
    else if(PlayerInfo[targetid][pJobInviteMonth] == 12) { string = "Dezember"; }
    format(jobinvite, sizeof(jobinvite), "%d. %s ", PlayerInfo[targetid][pJobInviteDate], string);
    format(coordsstring, sizeof(coordsstring), "JobInvite seit: [%s], Stunden[%d]",jobinvite, PlayerInfo[targetid][pJobHours]);
    SendClientMessage(playerid, COLOR_LIGHTBLUE,coordsstring);
    }
    if (PlayerInfo[playerid][pAdmin] >= 1331)
    {
    format(coordsstring, sizeof(coordsstring), "Haus key [%d] Business key [%d] HireKey [%d] int:[%d] local[%d]", housekey,bizkey,HireCar[targetid],intir,local);
    SendClientMessage(playerid, COLOR_GRAD6,coordsstring);
    format(carstring, sizeof(carstring), "BuyCarID [%d] BuyCarModel[%d] BuyBoatID [%d] BuyBoatModel [%d] BuyHeliID [%d] BuyHeliModel [%d]",BuyCarID[targetid], CarModel[targetid], BuyBoatID[targetid], BoatModel[targetid], BuyHeliID[targetid], HeliModel[targetid]);
    SendClientMessage(playerid, COLOR_GRAD6,carstring);
    }
    SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
    }
    }

  • Edit: pwn
    und Errors
    public ShowStats(playerid,targetid)


    {


    if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))


    {


    new coordsstring[6][256],string2[256];




    format(coordsstring[0], sizeof(coordsstring),"*** %s ***",name);


    format(coordsstring[1], sizeof(coordsstring), "Level:[%d] Alter:[%d] SpawnHealth:[%.1f] Geld:[$%d] Bank:[$%d] Ph:[%d]", level,age,shealth+50, cash, account, pnumber);


    format(coordsstring[2], sizeof(coordsstring), "PremiumRang:[%s] HeiratMit:[%s] GespielteStunden:[%d] LottoNr:[%d] Krankheit:[%s] Levelkosten:[%d]", drank,married,ptime,lotto,dtext,levelcost);


    format(coordsstring[3], sizeof(coordsstring), "Fische:[%d] GrößterFisch:[%d] Verbrechen:[%d] GefängnisZeiten:[%d] WantedDeaths:[%d]", fishes,bigfish,crimes,arrests,warrests );


    format(coordsstring[4], sizeof(coordsstring), "Kills:[%d] Tode:[%d] Respekt:[%d/%d] WantedLevel:[%d] PayDay:[%d/%d]",kills,deaths,exp,expamount,wanted,pday,maxpaydaytime);


    format(coordsstring[5], sizeof(coordsstring), "Drogen:[%d] ArmorDrogen:[%d] Materialien:[%d] Team:[%s] Organisation:[%s] Rang:[%s] Job:[%s]",drugs,adrugs,mats,ttext,ftext,rtext,jtext);


    format(string2,sizeof(string2),"%s\n%s\n%s",coordsstring[0],coordsstring[1],coordsstring[2],coordsstring[3],coordsstring[4],coordsstring[5]);


    ShowPlayerDialog(playerid,DIALOG_STATS,"Titel",string2,"Schließen","Schließen");


    }


    }
    C:\Users\Sergej\Desktop\gamemodes\life.pwn(16603) : error 017: undefined symbol "name"
    C:\Users\Sergej\Desktop\gamemodes\life.pwn(16604) : error 017: undefined symbol "level"
    C:\Users\Sergej\Desktop\gamemodes\life.pwn(16605) : error 017: undefined symbol "drank"
    C:\Users\Sergej\Desktop\gamemodes\life.pwn(16606) : error 017: undefined symbol "fishes"
    C:\Users\Sergej\Desktop\gamemodes\life.pwn(16607) : error 017: undefined symbol "kills"
    C:\Users\Sergej\Desktop\gamemodes\life.pwn(16608) : error 017: undefined symbol "drugs"
    C:\Users\Sergej\Desktop\gamemodes\life.pwn(16610) : error 035: argument type mismatch (argument 3)
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    7 Errors.

    Kann da einer helfen?

    3 Mal editiert, zuletzt von Sergej ()