[ Hilfe: /stats via 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
  • Ne also ich habe das ja kopiert von Dominic und jetzt habe ich das so gemacht >
    new married[20];
    strmid(married, PlayerInfo[targetid][pMarriedTo], 0, strlen(PlayerInfo[targetid][pMarriedTo]), 255);
    //new tbans = PlayerInfo[targetid][pTBanCount];
    new pdtime = 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][pWeed]+PlayerInfo[targetid][pLSD]+PlayerInfo[targetid][pKokain]+PlayerInfo[targetid][pCrack]+PlayerInfo[targetid][pHeroin];
    new mats = PlayerInfo[targetid][pMats];
    new bombmats = PlayerInfo[targetid][pBombs];
    new wanted = WantedLevel[targetid];
    new wantedpoints = WantedPoints[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 vworld = GetPlayerVirtualWorld(targetid);
    new Float:shealth = PlayerInfo[targetid][pSHealth];
    new adrugs = PlayerInfo[targetid][armordrugs];
    new bombs = PlayerInfo[targetid][pBomb];
    new Float:health;
    new name[MAX_PLAYER_NAME];
    new joblock[256];
    new jobinvite[256];
    new stopdrivers[256];
    new stopFlying[256];
    new stopSailing[256];
    new stopWeapon[256];
    new stopFishing[256];
    new stopBike[256];
    new warns = PlayerInfo[targetid][pWarns];
    GetPlayerName(targetid, name, sizeof(name));
    GetPlayerHealth(targetid,health);
    new Float:px,Float:py,Float:pz;
    GetPlayerPos(targetid, px, py, pz);
    new coordsstring[256];
    new name[24];
    GetPlayerName(playerid,Name,24);
    // new stringstat[6][128], names[88], string[128];
    // format(names, sizeof(names),"Stats von %s",name);
    format(stringstat[0],128,"Level:[%d] Geschlecht:[%s] Alter:[%d] Spawn:[%s] SpawnHP:[%.1f] Geld:[$%d] Bankkonto:[$%d] Hn:[%d]", level,atext,age,otext,shealth+50, cash, account, pnumber);
    format(stringstat[1],128,"Premium:[%s] Verheiratet:[%s] SpielStunden:[%d] LottoNr:[%d] Job:[%s]", drank,married,ptime,lotto,jtext);
    format(stringstat[2],128,"Gefangene Fische:[%d] Größter Fisch:[%d] Begangenen Verbrechen:[%d] Gefängniss Zeit:[%d] Wanted Tode:[%d]", fishes,bigfish,crimes,arrests,warrests );
    format(stringstat[3],128,"Kills:[%d] Tode:[%d] Nächster Level:[$%d] Respektpunkte:[%d/%d] WantedLevel:[%d] Familie:[%s]",kills,deaths,costlevel,exp,expamount,wanted,f2text);
    format(stringstat[4],128,"Drogen:[%d] Materials:[%d] Team:[%s] Krankheit:[%s] Organisation:[%s] Rank:[%s]",drugs,mats,ttext,dtext,ftext,rtext);
    if (PlayerInfo[playerid][pAdmin] >= 1)
    {
    format(stringstat[5],128,"House key [%d] Business key [%d] HireKey [%d] int:[%d] local[%d]", housekey,bizkey,HireCar[targetid],intir,local);
    }
    format(string,sizeof string,"%s\n%s\n%s\n%s\n%s\n%s",stringstat[0], stringstat[1], stringstat[2], stringstat[3], stringstat[4], stringstat[5]);
    ShowPlayerDialog(playerid,DIALOG_STYLE_MSGBOX,0,names,string,"Schließen","Schließen");

    Und was kommt mal wieder rauss

  • Habe es eingefügt genau so
    new married[20];
    strmid(married, PlayerInfo[targetid][pMarriedTo], 0, strlen(PlayerInfo[targetid][pMarriedTo]), 255);
    //new tbans = PlayerInfo[targetid][pTBanCount];
    new pdtime = 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][pWeed]+PlayerInfo[targetid][pLSD]+PlayerInfo[targetid][pKokain]+PlayerInfo[targetid][pCrack]+PlayerInfo[targetid][pHeroin];
    new mats = PlayerInfo[targetid][pMats];
    new bombmats = PlayerInfo[targetid][pBombs];
    new wanted = WantedLevel[targetid];
    new wantedpoints = WantedPoints[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 vworld = GetPlayerVirtualWorld(targetid);
    new Float:shealth = PlayerInfo[targetid][pSHealth];
    new adrugs = PlayerInfo[targetid][armordrugs];
    new bombs = PlayerInfo[targetid][pBomb];
    new Float:health;
    new name[MAX_PLAYER_NAME];
    new joblock[256];
    new jobinvite[256];
    new stopdrivers[256];
    new stopFlying[256];
    new stopSailing[256];
    new stopWeapon[256];
    new stopFishing[256];
    new stopBike[256];
    new warns = PlayerInfo[targetid][pWarns];
    GetPlayerName(targetid, name, sizeof(name));
    GetPlayerHealth(targetid,health);
    new Float:px,Float:py,Float:pz;
    GetPlayerPos(targetid, px, py, pz);
    new coordsstring[256];
    new stringstat[4][128];
    GetPlayerName(playerid,name,24);//name klein so wies auch definiert ist
    // new stringstat[6][128], names[88], string[128];
    // format(names, sizeof(names),"Stats von %s",name);
    format(stringstat[0],128,"Level:[%d] Geschlecht:[%s] Alter:[%d] Spawn:[%s] SpawnHP:[%.1f] Geld:[$%d] Bankkonto:[$%d] Hn:[%d]", level,atext,age,otext,shealth+50, cash, account, pnumber);
    format(stringstat[1],128,"Premium:[%s] Verheiratet:[%s] SpielStunden:[%d] LottoNr:[%d] Job:[%s]", drank,married,ptime,lotto,jtext);
    format(stringstat[2],128,"Gefangene Fische:[%d] Größter Fisch:[%d] Begangenen Verbrechen:[%d] Gefängniss Zeit:[%d] Wanted Tode:[%d]", fishes,bigfish,crimes,arrests,warrests );
    format(stringstat[3],128,"Kills:[%d] Tode:[%d] Nächster Level:[$%d] Respektpunkte:[%d/%d] WantedLevel:[%d] Familie:[%s]",kills,deaths,costlevel,exp,expamount,wanted,f2text);
    format(stringstat[4],128,"Drogen:[%d] Materials:[%d] Team:[%s] Krankheit:[%s] Organisation:[%s] Rank:[%s]",drugs,mats,ttext,dtext,ftext,rtext);
    if (PlayerInfo[playerid][pAdmin] >= 1)
    {
    format(stringstat[5],128,"House key [%d] Business key [%d] HireKey [%d] int:[%d] local[%d]", housekey,bizkey,HireCar[targetid],intir,local);
    }
    format(string,sizeof string,"%s\n%s\n%s\n%s\n%s\n%s",stringstat[0], stringstat[1], stringstat[2], stringstat[3], stringstat[4], stringstat[5]);
    ShowPlayerDialog(playerid,DIALOG_STYLE_MSGBOX,0,names,string,"Schließen","Schließen");

    und das kommt dabei rauss

    Zitat

    (13466) : error 032: array index out of bounds (variable "stringstat")
    (13469) : error 032: array index out of bounds (variable "stringstat")
    (13471) : error 017: undefined symbol "string"
    (13471) : error 017: undefined symbol "string"
    (13472) : error 017: undefined symbol "names"

    Einmal editiert, zuletzt von xXxDaVexXx ()

  • Ja genau sowas kannst ja mal deine icq nummer geben oder kannst auch einfach direkt den code hier posten oder mir per PN.

    Einmal editiert, zuletzt von xXxDaVexXx ()