DialogCenter problem
#1

Hello, please see the image: https://www.imageupload.net/image/sa-mp-895.xpdGp


pawn Code:
new string[128], dialog[700], hr, mn, sec;
                    strcat(dialog, "\\c{B40431}>>>\t{FF0000}TachGamE\t{B40431}<<<\n");
                    format(string, 128, "\\c\t{F5DA81}Tedade Goril\t{FF0000}:\t{F5DA81}%i\n", Goril[playerid]);
                    strcat(dialog, string);
                   
                    format(string, 128, "\\c\t{F5DA81}Tedade Olagh\t{FF0000}:\t{F5DA81}%i\n", Olagh[playerid]);
                    strcat(dialog, string);
                   
                    format(string, 128, "\\c\t{F5DA81}Tedade Nahang\t{FF0000}:\t{F5DA81}%i\n", Nahang[playerid]);
                    strcat(dialog, string);
                   
                    format(string, 128, "\\c\t{F5DA81}Tedade Bomb C4\t{FF0000}:\t{F5DA81}%d\n", HasC4[playerid]);
                    strcat(dialog, string);
                   
                    format(string, 128, "\\c\t{F5DA81}Tedade Gheychi\t{FF0000}:\t{F5DA81}%i\n", HasScissors[playerid]);
                    strcat(dialog, string);
                   
                    format(string, 128, "\\c\t{F5DA81}Tedade Tanab\t{FF0000}:\t{F5DA81}%i\n", HasRope[playerid]);
                    strcat(dialog, string);
                   
                    format(string, 128, "\\c\t{F5DA81}Tedade Ghors\t{FF0000}:\t{F5DA81}%d\n",Ghors[playerid]);
                    strcat(dialog, string);
                   
                    format(string, 128, "\\c\t{F5DA81}Tedade Sang\t{FF0000}:\t{F5DA81}%d\n",sang[playerid]);
                    strcat(dialog, string);
                   
                    format(string, 128, "\\c\t{F5DA81}Tedade Tala\t{FF0000}:\t{F5DA81}%i\n",seke[playerid]);
                    strcat(dialog, string);
                   
                    SecConvert(PlayTime[playerid], hr, mn, sec);
                    format(string, 128, "\\c\t{F5DA81}TimePlay\t{FF0000}:\t{F5DA81}%02i:%02i:%02i\n",hr,mn,sec);
                    strcat(dialog, string);
                    ShowPlayerDialog(playerid, DIALOG_UNUSED, DIALOG_STYLE_MSGBOX, "{2E9AFE}Moshakhaste Shoma",dialog,"Close", "");
How do I fix it?
Reply
#2

Don't use \t for those three just leave a space.

Ex:
Code:
  format(string, 128, "\\c\t{F5DA81}Tedade Bomb C4 {FF0000}:\t{F5DA81}%d\n", HasC4[playerid]);
                    strcat(dialog, string);
Reply
#3

Now: https://www.imageupload.net/image/sa-mp-899.xwfcW
I want them to be in order.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)