new jtext[20];
if(PlayerInfo[targetid][pJob] == 0) { jtext = "Arbeitslos"; }
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 = "Mechaniker"; }
else if(PlayerInfo[targetid][pJob] == 7) { jtext = "Bodyguard"; }
else if(PlayerInfo[targetid][pJob] == 8) { jtext = "Boxer"; }
else if(PlayerInfo[targetid][pJob] == 9) { jtext = "Busfahrer"; }
else if(PlayerInfo[targetid][pJob] == 10) { jtext = "Trucker"; }
else if(PlayerInfo[targetid][pJob] == 11) { jtext = "Busfahrer"; }
else if(PlayerInfo[targetid][pJob] == 12) { jtext = "Müllmann"; }
else if(PlayerInfo[targetid][pJob] == 13) { jtext = "Farmer"; }
else if(PlayerInfo[targetid][pJob] == 14) { jtext = "Taschendieb"; }
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 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 = PlayerInfo[targetid][pInt];
new local = PlayerInfo[targetid][pLocal];
new Float:health;
new name[MAX_PLAYER_NAME];
new Float:plHealth, Float:plArmour, plIP[20];
GetPlayerName(targetid, name, sizeof(name));
GetPlayerHealth(targetid,health);
new Float:px,Float:py,Float:pz;
GetPlayerPos(targetid, px, py, pz);
GetPlayerHealth(targetid,plHealth);
GetPlayerArmour(targetid,plArmour);
GetPlayerIp(targetid,plIP,sizeof(plIP));
new coordsstring[256];
new stringstat[8][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] Geld:[$%d] Bank:[$%d] Handy:[%d]", level,atext, cash, account, pnumber);
format(stringstat[1],128,"Herkunft:[%s] Verheiratet:[%s] Alter:[%d] Spielzeit:[%d] Job:[%s]",otext,married,age,ptime,jtext);
format(stringstat[2],128,"FishesCaught:[%d] GrößterFisch:[%d] Verbrechen:[%d] Gefängniszeit:[%d] Gesucht:[%d]", fishes,bigfish,crimes,arrests,warrests);
format(stringstat[3],128,"Kills:[%d] Tode:[%d] Respekt:[%d/%d] WantedLevel:[%d] LottoNr:[%d]",kills,deaths,exp,expamount,wanted,lotto);
format(stringstat[4],128,"Drogen:[%d] Materials:[%d] Team:[%s] Krankheit:[%s] Organisation:[%s] Rank:[%s]",drugs,mats,ttext,dtext,ftext,rtext);
format(stringstat[5],128,"NachLoginMin: [%d] Spielminuten: [%d]",PlayerInfo[targetid][pMinutesSinceLogin],PlayerInfo[targetid][pGesamtMinutes]);
if (PlayerInfo[playerid][pAdmin] >= 1)
{
format(stringstat[6],128,"Hausschlüssel[%d] Bizzkey[%d] Leihschlüssel[%d] Int[%d] Local[%d]", housekey,bizkey,HireCar[targetid],intir,local);
format(stringstat[7],128,"Health [%.2f] Schutzweste [%.2f] IP[%s] Ping [%d] Warnungen[%d]",plHealth,plArmour,plIP,GetPlayerPing(targetid),PlayerInfo[targetid][pWarns]);
}
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], stringstat[6], stringstat[7]);
ShowPlayerDialog(playerid,DIALOG_STYLE_MSGBOX,0,name,string,"Schließen","Schließen");
}
}
bei mir funkt das irgendwie nicht da kommt dann das da:
C:\Users\Acer\Desktop\GTA San Andreas\gamemodes\test.pwn(6103) : warning 217: loose indentation
C:\Users\Acer\Desktop\GTA San Andreas\gamemodes\test.pwn(6110) : warning 217: loose indentation
C:\Users\Acer\Desktop\GTA San Andreas\gamemodes\test.pwn(6240) : warning 217: loose indentation
C:\Users\Acer\Desktop\GTA San Andreas\gamemodes\test.pwn(6244) : warning 217: loose indentation
C:\Users\Acer\Desktop\GTA San Andreas\gamemodes\test.pwn(11180) : error 017: undefined symbol "string"
C:\Users\Acer\Desktop\GTA San Andreas\gamemodes\test.pwn(11180) : error 017: undefined symbol "string"
C:\Users\Acer\Desktop\GTA San Andreas\gamemodes\test.pwn(11181) : error 017: undefined symbol "string"
C:\Users\Acer\Desktop\GTA San Andreas\gamemodes\test.pwn(11164) : warning 204: symbol is assigned a value that is never used: "coordsstring"
// edit: Kann mir wer bitte helfen?!!