Hey,
Ich bearbeitet momentan einen script, jedoch komme
Ich momentan nicht weiter.
Beim /Stats befehl ist der Dialog so schmall.
Wie bekomme ich es hin das er breit ist?
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
-
-
Zeig mal den Code.
/e: Wenn ich denke was du meinst, dann vergrößere mal den String.
-
Du musst den Platz einfach nutzen, da sich er automatisch anpasst.
Heißt, schreibe in eine Zeile einfach mehr/edit:
Zeig mal den Code.
/e: Wenn ich denke was du meinst, dann vergrößere mal den String.
Also ich verstehe deine Denkweise nicht ganz...
Die Lösung steht dort bereits und du willst die String-Länge vergrößernL.G.
heyho -
Hab verstanden das die Säte bzw Buchstaben einfach aufhören..
-
ok , bin jetzt am pc,
kann mir wer den code so geben dass das halt breiter ist ?//======= STATS DIALOG BOX ========//
Function Stats(playerid,targetid)
{
if(IsPlayerConnected(targetid))
{
new cash = GetPlayerMoney(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 = "Deutschland"; }
else if(PlayerInfo[targetid][pOrigin] == 2) { otext = "Osterreich"; }
else if(PlayerInfo[targetid][pOrigin] == 3) { otext = "Schweiz"; }
new ttext[20];
new leader = PlayerInfo[targetid][pLeader];
new member = PlayerInfo[targetid][pMember];
if(gTeam[targetid] == 3 || gTeam[targetid] == 4) { ttext = "Zivilist"; }
else
{
if(leader != 0) ttext = Fracs[leader-1];
if(member != 0) ttext = Fracs[member-1];
}
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 = "-"; }
new ftext[20];
if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4)
{ ftext = "Sanitäter"; }
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 = "Yakuza"; }
else if(PlayerInfo[targetid][pMember] == 11 || PlayerInfo[targetid][pLeader] == 11)
{ ftext = "Fahrlehrer"; }
else
{ ftext = "-"; }
new f2text[20];
new rtext[64];
if(gTeam[targetid] == 5 || PlayerInfo[targetid][pFMember] < 255)//The 2 Organisations
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "Solitario"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Studioso"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Soldato"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Assasino"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Destro"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Padre"; }
else { rtext = "Apprendista"; }
}
else if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1)// Ranks
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "Polizeikommissaranwärter"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Polizeikommissar"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Polizeioberkommissar"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Polizeihauptkommissar"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Erster Polizeihauptkommissar"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Kriminalkommissar"; }
else if(PlayerInfo[targetid][pRank] == 7) { rtext = "Kriminaloberkommissar"; }
else if(PlayerInfo[targetid][pRank] == 8) { rtext = "Kriminalhauptkommissar"; }
else if(PlayerInfo[targetid][pRank] == 9) { rtext = "Erster Kriminalhauptkommissar"; }
else if(PlayerInfo[targetid][pRank] == 10) { rtext = "Polizeirat"; }
else if(PlayerInfo[targetid][pRank] == 11) { rtext = "Polizeidirektor"; }
else if(PlayerInfo[targetid][pRank] == 12) { rtext = "Polizeipräsident"; }
else { rtext = "Polizist im Praktikum"; }
}
else if(PlayerInfo[targetid][pMember] == 2 || PlayerInfo[targetid][pLeader] == 2)//FBI Ranks
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "New Agent"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Special Agent"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Supervisory Special Agent"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Special Agent in Charge"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Deputy Director"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Director of Secret Service"; }
else { rtext = "Cadet"; }
}
else if(PlayerInfo[targetid][pMember] == 19 || PlayerInfo[targetid][pLeader] == 19)//RS
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "Anfänger"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Erfahrener"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Killer"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Elite"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Zweite Hand"; }
else if(PlayerInfo[targetid][pRank] == 6 || PlayerInfo[targetid][pRank] == 12) { rtext = "Red King"; }
else { rtext = "Neuling"; }
}
else if(PlayerInfo[targetid][pMember] == 21 || PlayerInfo[targetid][pLeader] == 21)//WHEELMEN
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "Anfänger"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Member"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Spezial Member"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Ausbilder"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Co-Leader"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Leader"; }
else { rtext = "Anfänger"; }
}
else if(PlayerInfo[targetid][pMember] == 3 || PlayerInfo[targetid][pLeader] == 3)//NG Ranks
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "Private"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Sergeant"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Major"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Captain"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Lieutenant"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "General"; }
else { rtext = "Private"; }
}
else if(PlayerInfo[targetid][pMember] == 7 || PlayerInfo[targetid][pLeader] == 7)
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "Personenschutz-Azubi"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Personenschutz"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Personenschutz-Leiter"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Geheimdienst-Azubi"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Geheimdienst"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Geheimdienst Leiter"; }
else if(PlayerInfo[targetid][pRank] >= 7 && PlayerInfo[targetid][pRank] < 12) { rtext = "Minister"; }
else if(PlayerInfo[targetid][pRank] == 12) { rtext = "Bundespräsident"; }
else { rtext = "Private"; }
}
else if(PlayerInfo[targetid][pMember] == 8 || PlayerInfo[targetid][pLeader] == 8)//Hitman Ranks
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "Azubi"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Söldner"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Attentäter"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Massenmörder"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Vize-Direktor"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Direktor"; }
else { rtext = "Praktikant"; }
}
else if(PlayerInfo[targetid][pMember] == 21 || PlayerInfo[targetid][pLeader] == 21)
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "Neuling"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Söldner"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Attentäter"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Massenmörder"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Vize-Direktor"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Direktor"; }
else { rtext = "Praktikant"; }
}
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 = "-";
}
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 = "Drogendealer"; }
else if(PlayerInfo[targetid][pJob] == 5) { jtext = "Autodieb"; }
else if(PlayerInfo[targetid][pJob] == 6) { jtext = "Farmer"; }
//else if(PlayerInfo[targetid][pJob] == 7) { jtext = "Mechaniker"; }
else if(PlayerInfo[targetid][pJob] == 8) { jtext = "Bodyguard"; }
else if(PlayerInfo[targetid][pJob] == 9) { jtext = "Waffendealer"; }
else if(PlayerInfo[targetid][pJob] == 10) { jtext = "Autohändler"; }
else if(PlayerInfo[targetid][pJob] == 12) { jtext = "Boxer"; }
else if(PlayerInfo[targetid][pJob] == 14) { jtext = "Busfahrer"; }
else if(PlayerInfo[targetid][pJob] == 15) { jtext = "Zeitungsjunge"; }
else if(PlayerInfo[targetid][pJob] == 16) { jtext = "Pilot"; }
else if(PlayerInfo[targetid][pJob] == 17) { jtext = "Müllmann"; }
else if(PlayerInfo[targetid][pJob] == 18) { jtext = "Angler"; }
else if(PlayerInfo[targetid][pJob] == 19) { jtext = "Pizzalieferer"; }
else if(PlayerInfo[targetid][pJob] == 21) { jtext = "Stadtreinigung"; }
else { jtext = "-"; }
new drank[20];
if(PlayerInfo[targetid][pDonateRank] == 1) { drank = "Premium-User 1"; }
else if(PlayerInfo[targetid][pDonateRank] == 2) { drank = "Exclusive Premium"; }
else if(PlayerInfo[targetid][pDonateRank] >= 3) { drank = "High Admin Premium"; }
else { drank = "-"; }
new married[20];
strmid(married, PlayerInfo[targetid][pMarriedTo], 0, strlen(PlayerInfo[targetid][pMarriedTo]), 255);
new age = PlayerInfo[targetid][pAge];
new crimes = PlayerInfo[targetid][pCrimes];
new arrests = PlayerInfo[targetid][pArrested];
new boxdrugs = PlayerInfo[targetid][pBoxDrugs];
new boxmats = PlayerInfo[targetid][pBoxMats];
new fraksperre = PlayerInfo[targetid][pFrakSperre];
new wanted = WantedLevel[targetid];
new level = PlayerInfo[targetid][pLevel];
new exp = PlayerInfo[targetid][pExp];
new zollt = PlayerInfo[targetid][pZollPassTime];
new krankt = PlayerInfo[targetid][pKrankenkasseTime];
new drugs = PlayerInfo[targetid][pDrugs];
new pkredit = PlayerInfo[targetid][pPlayerKredit];
new mats = PlayerInfo[targetid][pMats];
new pnumber = PlayerInfo[targetid][pPnumber];
new account = PlayerInfo[targetid][pAccount];
new pkreditdauer = PlayerInfo[targetid][pPlayerKreditDauer];
new nxtlevel = PlayerInfo[targetid][pLevel]+1;
new expamount = nxtlevel*levelexp;
new costlevel = nxtlevel*levelcost;//10k for testing purposes
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;
new Float:plHealth, Float:plArmour;
new ToPayDay = PlayerInfo[targetid][pPlayMinutes];
new TimeToPayday = ToPayDay -= 60;
GetPlayerPos(targetid, px, py, pz);
GetPlayerHealth(targetid,plHealth);
GetPlayerArmour(targetid,plArmour);
new string1[200],string2[500],string3[400],string4[200],string5[200],string6[200],string7[200],string8[500],string9[200],string10[200],string11[200],string12[500],string13[27],rest[1500];
format(string1, sizeof string1, "Ich bin: {FF0000}%s{FFFFFF}", name);
format(string2, sizeof string2, "{FF9900}Allgemeines{FFFFFF}\n----------------------------");
format(string3, sizeof string3, "Level: {FF0000}%d{FFFFFF}\nGeschlecht: {FF0000}%s{FFFFFF}\nAlter: {FF0000}%d{FFFFFF}\nHerkunft: {FF0000}%s{FFFFFF}\nSpawnenergie: {FF0000}%.1f{FFFFFF}\nVerheiratet mit: {FF0000}%s{FFFFFF}\nTelefonnummer: {FF0000}%d{FFFFFF}\n", level,atext,age,otext,shealth+50.0,married,pnumber);
format(string4, sizeof string4, "{FF9900}Sonstiges / Verbrechen{FFFFFF}");
format(string5, sizeof string5, "-------------------------------------");
format(string6, sizeof string6, "Verbrechen: {FF0000}%d{FFFFFF}\nGefängniszeiten: {FF0000}%d{FFFFFF}\nKosten für nächstes Level: {FF0000}%d${FFFFFF}\nSpielminuten seit Login / insgesammt: {FF0000}%d / %d{FFFFFF}", crimes,arrests,costlevel,PlayerInfo[targetid][pMinutesSinceLogin],PlayerInfo[targetid][pGesamtMinutes]);
format(string7, sizeof string7, "\n{FF9900}Vermögen{FFFFFF}\n----------------------------\n");
format(string8, sizeof string8, "Bargeld: {FF0000}%d${FFFFFF}\nBankkonto: {FF0000}%d${FFFFFF}\nPremium Rang: {FF0000}%s{FFFFFF}\nWantedlevel: {FF0000}%d{FFFFFF}\nRespektpunkte: {FF0000}%d / %d{FFFFFF}\nKreditraten verbleibend / Summe: {FF0000}%d / %d{FFFFFF}\nDrogen: {FF0000}%d{FFFFFF}g\nMaterialien: {FF0000}%d{FFFFFF}\nZollpass seit: {FF0000}%d{FFFFFF}\nKrankenkasse seit: {FF0000}%d{FFFFFF}", cash,account, drank, wanted,exp,expamount,pkreditdauer,pkredit,drugs,mats,zollt,krankt);
format(string9, sizeof string9, "{FF9900}Savebox{FFFFFF}\n----------------------------\n");
format(string10, sizeof string10, "Materialen: {FF0000}%d{FFFFFF}\nDrogen: {FF0000}%d{FFFFFF}g", boxmats, boxdrugs);
format(string11, sizeof string11, "{FF9900}Fraktion und Beruf{FFFFFF}\n----------------------------");
format(string12, sizeof string12, "Team: {FF0000}%s{FFFFFF}\nOrganisation: {FF0000}%s{FFFFFF}\nRang: {FF0000}%s{FFFFFF}\nFamilie: {FF0000}%s{FFFFFF}\nBeruf: {FF0000}%s{FFFFFF}\nGehalt/Payday: {FF0000}%d{FFFFFF}$ in {FF0000}%d{FFFFFF} Minuten\nFraktionsperre: {FF0000}%d{FFFFFF} Stunden", ttext, ftext, rtext,f2text,jtext,PlayerInfo[targetid][pGehalt],TimeToPayday,fraksperre/3600);
//format(string13, sizeof string13, "\n{FF0000}Created by Shox ©{FFFFFF}");
format(rest, sizeof rest, "%s\n\n\n%s\n%s\n%s\n%s\n\n%s\n%s\n%s\n\n%s\n%s\n\n%s\n%s\n%s\n%s", string1,string2,string3,string4,string5,string6,string7,string8,string9,string10,string11,string12,string13);
ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,"Statstik",rest,"Beenden","");
}
} -
breadfish.de
Hat das Thema geschlossen.