Guten Tag liebe Community.
Ich habe mal versucht beim GF stats in nen Dialog zu bringen , der ab er nur zum Teil angezeigt wird:
public ShowStats(playerid,targetid)
{
if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
{
new cash = GetPlayerMoney(targetid);
new atext[20];
if(PlayerInfo[targetid][pSex] == 1) { atext = "Junge"; }
else if(PlayerInfo[targetid][pSex] == 2) { atext = "Mädchen"; }
new otext[80];
if(PlayerInfo[targetid][pOrigin] == 1) { otext = "USA"; }
else if(PlayerInfo[targetid][pOrigin] == 2) { otext = "Europe"; }
else if(PlayerInfo[targetid][pOrigin] == 3) { otext = "Asia"; }
new ttext[80];
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 = "Officer"; }
else if(PlayerInfo[targetid][pMember] == 2 || PlayerInfo[targetid][pLeader] == 2) { ttext = "FBI Agent"; }
else if(PlayerInfo[targetid][pMember] == 3 || PlayerInfo[targetid][pLeader] == 3) { ttext = "U.S. Army / U.S. Airforce"; }
else if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4) { ttext = "Firemen/Paramedic"; }
else if(PlayerInfo[targetid][pMember] == 5 || PlayerInfo[targetid][pLeader] == 5) { ttext = "Lost Angelz"; }
else if(PlayerInfo[targetid][pMember] == 6 || PlayerInfo[targetid][pLeader] == 6) { ttext = "Nevada MC"; }
else if(PlayerInfo[targetid][pMember] == 8 || PlayerInfo[targetid][pLeader] == 8) { ttext = "Hitmen"; }
else if(PlayerInfo[targetid][pMember] == 9 || PlayerInfo[targetid][pLeader] == 9) { ttext = "Four Corner Hustlers P. Almighty ; }
else if(PlayerInfo[targetid][pMember] == 10 || PlayerInfo[targetid][pLeader] == 10) { ttext = "El Estacaliticas"; }
else if(PlayerInfo[targetid][pMember] == 11 || PlayerInfo[targetid][pLeader] == 11) { ttext = "Terroristen"; }
new dtext[80];
if(STDPlayer[targetid] == 1) { dtext = "Chlamydia"; }
else if(STDPlayer[targetid] == 2) { dtext = "Gonorrhea"; }
else if(STDPlayer[targetid] == 3) { dtext = "Syphilis"; }
else { dtext = "None"; }
new ftext[80];
if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4)
{ ftext = "Firemen/Paramedics"; }
else if(PlayerInfo[targetid][pMember] == 5 || PlayerInfo[targetid][pLeader] == 5)
{ ftext = "Lost Angelz"; }
else if(PlayerInfo[targetid][pMember] == 6 || PlayerInfo[targetid][pLeader] == 6)
{ ftext = "Nevada MC"; }
else if(PlayerInfo[targetid][pMember] == 11 || PlayerInfo[targetid][pLeader] == 11)
{ ftext = "Terroristen"; }
else
{ ftext = "None"; }
new f2text[20];
if(PlayerInfo[targetid][pFMember] < 255) { f2text = FamilyInfo[PlayerInfo[targetid][pFMember]][FamilyName]; }
else { f2text = "None"; }
new rtext[264];
if(gTeam[targetid] == 5 || PlayerInfo[targetid][pFMember] < 255)//The 2 Organisations
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "Outsider"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Associate"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Soldier"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Capo"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Underboss"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Godfather"; }
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] == 2 || PlayerInfo[targetid][pLeader] == 2)//FBI 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)//U.S.A
{
if(PlayerInfo[targetid][pRank] == 27) { rtext = "GA"; }
else if(PlayerInfo[targetid][pRank] == 23) { rtext = "General"; }
else if(PlayerInfo[targetid][pRank] == 22) { rtext = "Lieutenant General"; }
else if(PlayerInfo[targetid][pRank] == 21) { rtext = "Major General"; }
else if(PlayerInfo[targetid][pRank] == 20) { rtext = "Brigadier General"; }
else if(PlayerInfo[targetid][pRank] == 19) { rtext = "Colonel"; }
else if(PlayerInfo[targetid][pRank] == 18) { rtext = "F" ; }
else if(PlayerInfo[targetid][pRank] == 17) { rtext = "Lieutenant Colonel"; }
else if(PlayerInfo[targetid][pRank] == 16) { rtext = "Major"; }
else if(PlayerInfo[targetid][pRank] == 15) { rtext = "Captain"; }
else if(PlayerInfo[targetid][pRank] == 14) { rtext = "First Lieutenant"; }
else if(PlayerInfo[targetid][pRank] == 13) { rtext = "Second Lieutenant"; }
else if(PlayerInfo[targetid][pRank] == 12) { rtext = "Chief Master Sergeant of the Air Force"; }
else if(PlayerInfo[targetid][pRank] == 11) { rtext = "Command Chief Master Sergeant"; }
else if(PlayerInfo[targetid][pRank] == 10) { rtext = "Chief Master Sergeant"; }
else if(PlayerInfo[targetid][pRank] == 9) { rtext = "Senior Master Sergeant"; }
else if(PlayerInfo[targetid][pRank] == 8) { rtext = "Master Sergeant"; }
else if(PlayerInfo[targetid][pRank] == 7) { rtext = "Staff Sergeant"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Senior Airman"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Airman"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Corporal"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Private"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Airman Basic"; }
else { rtext = "Private"; }
}
else if(PlayerInfo[targetid][pMember] == 8 || PlayerInfo[targetid][pLeader] == 8)//Hitman Ranks
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "Freelancer"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Marksman"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Agent"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Special Agent"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Vice-Director"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Director"; }
else { rtext = "Freelancer"; }
}
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 = "None";
}
new jtext[20];
if(PlayerInfo[targetid][pJob] == 1) { jtext = "Detective"; }
else if(PlayerInfo[targetid][pJob] == 2) { jtext = "Lawyer"; }
else if(PlayerInfo[targetid][pJob] == 3) { jtext = "Whore"; }
else if(PlayerInfo[targetid][pJob] == 4) { jtext = "Drugs 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 = "Car Mechanic"; }
else if(PlayerInfo[targetid][pJob] == 8) { jtext = "Bodyguard"; }
else if(PlayerInfo[targetid][pJob] == 9) { jtext = "Arms Dealer"; }
else if(PlayerInfo[targetid][pJob] == 10) { jtext = "Car Dealer"; }
else if(PlayerInfo[targetid][pJob] == 12) { jtext = "Boxer"; }
else if(PlayerInfo[targetid][pJob] == 14) { jtext = "Bus Driver"; }
else if(PlayerInfo[targetid][pJob] == 15) { jtext = "Paper Boy"; }
else if(PlayerInfo[targetid][pJob] == 16) { jtext = "Trucker"; }
else { jtext = "None"; }
new drank[20];
if(PlayerInfo[targetid][pDonateRank] == 1) { drank = "Power User"; }
else if(PlayerInfo[targetid][pDonateRank] >= 2) { drank = "Donater"; }
else { drank = "None"; }
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 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;
GetPlayerPos(targetid, px, py, pz);
//new coordsstring[256];
///SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
// format(coordsstring, sizeof(coordsstring),"*** %s ***",name);
// SendClientMessage(playerid, COLOR_WHITE,coordsstring);
//ShowPlayerDialog(playerid,,DIALOG_STYLE_MSGBOX,"","");
/*format(coordsstring, sizeof(coordsstring), "Level:[%d] Sex:[%s] Age:[%d] Origin:[%s] SpawnHealth:[%.1f] Cash:[$%d] Bank:[$%d] Ph:[%d]", level,atext,age,otext,shealth+50, cash, account, pnumber);
SendClientMessage(playerid, COLOR_GRAD1,coordsstring);
format(coordsstring, sizeof(coordsstring), "DonateRank:[%s] MarriedTo:[%s] PlayingHours:[%d] LottoNr:[%d] Job:[%s]", drank,married,ptime,lotto,jtext);
SendClientMessage(playerid, COLOR_GRAD3,coordsstring);
format(coordsstring, sizeof(coordsstring), "FishesCaught:[%d] BiggestFish:[%d] CrimesCommited:[%d] TimesArrested:[%d] WantedDeaths:[%d]", fishes,bigfish,crimes,arrests,warrests );
SendClientMessage(playerid, COLOR_GRAD4,coordsstring);
format(coordsstring, sizeof(coordsstring), "Kills:[%d] Deaths:[%d] NextLevel:[$%d] Respect:[%d/%d] WantedLevel:[%d] Family:[%s]",kills,deaths,costlevel,exp,expamount,wanted,f2text);
SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
format(coordsstring, sizeof(coordsstring), "Drugs:[%d] Materials:[%d] Team:[%s] Disease:[%s] Organisation:[%s] Rank:[%s]",drugs,mats,ttext,dtext,ftext,rtext);*/
new coordsstring[7][256],string2[256];
format(coordsstring[0], sizeof(coordsstring),"*** %s ***",name);
format(coordsstring[1], sizeof(coordsstring), "Level:[%d] \n Geschlecht:[%s] \n Alter:[%d] \n Herkunft:[%s] \n Spawnenergie:[%.1f] \n Geld:[$%d] \n Bank:[$%d] \n Ph:[%d]", level,atext,age,otext,shealth+50, cash, account, pnumber);
format(coordsstring[2], sizeof(coordsstring), "Premium Rang:[%s] \n Verheiratet:[%s] \n Spielzeit:[%d] \n LottoNr:[%d] \n Job:[%s]", drank,married,ptime,lotto,jtext);
format(coordsstring[3], sizeof(coordsstring), "FishesCaught:[%d] \n GrösterFisch:[%d] \n Verbrechen:[%d] \n Gefängniszeit:[%d] \n Gesucht:[%d]", fishes,bigfish,crimes,arrests,warrests );
format(coordsstring[4], sizeof(coordsstring), "Kills:[%d] \n Tode:[%d] \n Nächstes Level:[$%d] \n Respekt:[%d/%d] \n WantedLevel:[%d] \n Familie:[%s]",kills,deaths,costlevel,exp,expamount,wanted,f2text);
format(coordsstring[5], sizeof(coordsstring), "Drugs:[%d] Materials:[%d] Team:[%s] Krankheit:[%s] Organisation:[%s] Rank:[%s]",drugs,mats,ttext,dtext,ftext,rtext);
//format(coordsstring[6], sizeof(coordsstring), "Spielminuten seit Login: [%d] Spielminuten Insgesamt: [%d]",PlayerInfo[targetid][pMinutesSinceLogin],PlayerInfo[targetid][pGesamtMinutes]);
format(string2,sizeof(string2),"%s\n%s\n%s",coordsstring[0],coordsstring[1],coordsstring[2],coordsstring[3],coordsstring[4],coordsstring[5]);
ShowPlayerDialog(playerid,4822,DIALOG_STYLE_MSGBOX,"Titel",string2,"Schließen","Schließen");
// SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
if (PlayerInfo[playerid][pAdmin] >= 1)
{
// format(coordsstring, sizeof(coordsstring), "House key [%d] Business key [%d] HireKey [%d] int:[%d] local[%d]", housekey,bizkey,HireCar[targetid],intir,local);
// SendClientMessage(playerid, COLOR_GRAD6,coordsstring);
}
//SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
}
}
Danke im vorraus