[Question] String 1024 - 256 coordstring - Not showing full stats.
#1

Hello, i was putting the stats in dialog but something wrong i tryed and string 2048 with coordstring 524 but nothing so i dont know why not showing the full stats only some.

This is the code:

pawn Code:
new string[1024];
        new coordsstring1[256];
        new coordsstring2[256];
        new coordsstring3[256];
        new coordsstring4[256];
        format(coordsstring1, sizeof(coordsstring1),"\n{FFD200}- Igrac:{00B9FF}[%s]\n{FFD200}- Level:{00B9FF}[%d]\n-{FFD200} Spol:{00B9FF}[%s]\n-{FFD200} God:[%d]\n-{FFD200} Drzava:{00B9FF}[%s]\n-{FFD200} Novac:{00B9FF}[%d$]\n-{FFD200} Bank:{00B9FF}[%d$]\n-{FFD200} Karticka:{00B9FF}[%d$]\n-{FFD200} PinKod:{FAFAFA}[%d]\n-{FFD200} Broj:{00B9FF}[%d]", name,level,atext,age,otext,cash,account,bankomat,pinkod,pnumber);
        format(coordsstring2, sizeof(coordsstring2),"\n{FAFAFA}- Posao:{00B9FF}[%s]\n-{FAFAFA} Organizacija:{00B9FF}[%s]\n-{FAFAFA} Rank:{00B9FF}[%s]\n-{FAFAFA} Tim:{00B9FF}[%s]",jtext,ftext,rtext,ttext);
        format(coordsstring3, sizeof(coordsstring3),"\n{FFD200}- IgraSati:{00B9FF}[%d]\n-{FFD200} Respekti:{00B9FF}[%d/%d]\n-{FFD200} PayDay Poeni:{00B9FF}[%d/6]\n-{FFD200} Ubistva:{00B9FF}[%d]\n-{FFD200} Smrti:{00B9FF}[%d]\n-{FFD200} Wanted:{00B9FF}[%d]\n-{FFD200} Droga:{00B9FF}[%d]\n-{FFD200} Materijali:{00B9FF}[%d]\n-{FFD200} Upozorenja:{00B9FF}[%d/5]", ptime,exp,expamount,poeni,kills,deaths,wanted,drugs,mats,warns);
        format(coordsstring4, sizeof(coordsstring4),"\n{FAFAFA}- Imovina: {00B9FF}[%d]\n{FAFAFA}- Kuca:{00B9FF}[%d]\n-{FAFAFA} Firma:{00B9FF}[%d]\n-{FAFAFA} Local:{00B9FF}[%d]\n-{FAFAFA} Donator:{00B9FF}[%s]",housekey,bizkey,local,drank);
        format(string, 1024," %s%s%s%s",coordsstring1,coordsstring2,coordsstring3,coordsstring4);
        ShowPlayerDialog(playerid, 13, DIALOG_STYLE_MSGBOX,"{FFD200}Osobna {00B9FF}Iskaznica",string,"U redu","");
    }
}
Reply
#2

Did you count how many characters will be used on each line?
This seems too large for a dialog

Try using strcat, is something like :

pawn Code:
new BigString[2048],coordsstring[256];
format(coordsstring, sizeof(coordsstring),"\n{FFD200}- Igrac:{00B9FF}[%s]\n{FFD200}- Level:{00B9FF}[%d]\n-{FFD200} Spol:{00B9FF}[%s]\n-{FFD200} God:[%d]\n-{FFD200} Drzava:{00B9FF}[%s]\n-{FFD200} Novac:{00B9FF}[%d$]\n-{FFD200} Bank:{00B9FF}[%d$]\n-{FFD200} Karticka:{00B9FF}[%d$]\n-{FFD200} PinKod:{FAFAFA}[%d]\n-{FFD200} Broj:{00B9FF}[%d]", name,level,atext,age,otext,cash,account,bankomat,pinkod,pnumber);
strcat(BigString, coordsstring);
format(coordsstring, sizeof(coordsstring),"\n{FAFAFA}- Posao:{00B9FF}[%s]\n-{FAFAFA} Organizacija:{00B9FF}[%s]\n-{FAFAFA} Rank:{00B9FF}[%s]\n-{FAFAFA} Tim:{00B9FF}[%s]",jtext,ftext,rtext,ttext);
strcat(BigString, coordsstring);
format(coordsstring, sizeof(coordsstring),"\n{FFD200}- IgraSati:{00B9FF}[%d]\n-{FFD200} Respekti:{00B9FF}[%d/%d]\n-{FFD200} PayDay Poeni:{00B9FF}[%d/6]\n-{FFD200} Ubistva:{00B9FF}[%d]\n-{FFD200} Smrti:{00B9FF}[%d]\n-{FFD200} Wanted:{00B9FF}[%d]\n-{FFD200} Droga:{00B9FF}[%d]\n-{FFD200} Materijali:{00B9FF}[%d]\n-{FFD200} Upozorenja:{00B9FF}[%d/5]", ptime,exp,expamount,poeni,kills,deaths,wanted,drugs,mats,warns);
strcat(BigString, coordsstring);
format(coordsstring, sizeof(coordsstring),"\n{FAFAFA}- Imovina: {00B9FF}[%d]\n{FAFAFA}- Kuca:{00B9FF}[%d]\n-{FAFAFA} Firma:{00B9FF}[%d]\n-{FAFAFA} Local:{00B9FF}[%d]\n-{FAFAFA} Donator:{00B9FF}[%s]",housekey,bizkey,local,drank);
strcat(BigString, coordsstring);

ShowPlayerDialog(playerid, 13, DIALOG_STYLE_MSGBOX,"{FFD200}Osobna {00B9FF}Iskaznica",BigString,"U redu","");
Reply
#3

Quote:
Originally Posted by Viniborn
View Post
This seems too large for a dialog
I'm using 4x1024 chars in a single MSGBOX dialog, and it works.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)