SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 20/04/2020, 09:49 AM   #1
xRadical3
Gangsta
 
Join Date: May 2017
Location: Iran
Posts: 644
Reputation: 47
Default DialogCenter problem

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?
xRadical3 is online now   Reply With Quote
Old 20/04/2020, 11:03 AM   #2
SiaReyes
Gangsta
 
Join Date: Mar 2019
Location: Coordinates X,Y,Z
Posts: 618
Reputation: 57
Default Re: DialogCenter problem

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);
SiaReyes is offline   Reply With Quote
Old 20/04/2020, 11:42 AM   #3
xRadical3
Gangsta
 
Join Date: May 2017
Location: Iran
Posts: 644
Reputation: 47
Default Re: DialogCenter problem

Now: https://www.imageupload.net/image/sa-mp-899.xwfcW
I want them to be in order.
xRadical3 is online now   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Password Hash Problem & MYSQL Saving Problem Faqahat Scripting Help 3 18/04/2016 11:54 AM
[SOLVED] 3 problem's! (1 problem still unsolved, but stopped solving.) Mechscape Help Archive 9 24/12/2009 08:47 PM


All times are GMT. The time now is 05:57 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.