SA-MP Forums Archive
Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help (/showthread.php?tid=602244)



Help - BlackEvils - 04.03.2016

how i must put this code for show 2 lines?

format(str, sizeof(str), "Command\tDescription\tPlaying\n\
{ffffff}/minigun\t{F7FF00}Minigun Deathmatch\t{0099FF}(%d players)", count);
{ffffff}/minigun\t{F7FF00}Minigun Deathmatch\t{0099FF}(%d players)", count);
ShowPlayerDialog(playerid, DIALOG_DMS, DIALOG_STYLE_TABLIST_HEADERS, "Deathmatch", str, "Select", "Close");


Re: Help - xEF - 04.03.2016

What you mean?


Re: Help - oMa37 - 04.03.2016

Thats what i understood ..
PHP код:
format(strsizeof(str), "Command\nDescription\nPlaying\n
{ffffff}minigun\n{F7FF00}Minigun Deathmatch\n{0099FF}(%d players)"
count); 



Re: Help - BlackEvils - 06.03.2016

Quote:
Originally Posted by oMa37
Посмотреть сообщение
Thats what i understood ..
PHP код:
format(strsizeof(str), "Command\nDescription\nPlaying\n
{ffffff}minigun\n{F7FF00}Minigun Deathmatch\n{0099FF}(%d players)"
count); 
how i put more lines formats?


Re: Help - CalvinC - 07.03.2016

Put \n at the end.
"Line1\n
Line2\n
Line3"
and so on


Re: Help - BlackEvils - 07.03.2016

Quote:
Originally Posted by CalvinC
Посмотреть сообщение
Put \n at the end.
"Line1\n
Line2\n
Line3"
and so on
new str[128];
format(str, sizeof(str), "Command\tDescription\tPlaying\n\
{ffffff}/minigun\t{F7FF00}Minigun Deathmatch\t{0099FF}(%d players)", minigundmcount);\n
{ffffff}/minigun\t{F7FF00}Minigun Deathmatch\t{0099FF}(%d players)", mrfdmcount);"
ShowPlayerDialog(playerid, DIALOG_DMS, DIALOG_STYLE_TABLIST_HEADERS, "Deathmatch", str, "Select", "Close");

I have errors not work


Re: Help - MicroKyrr - 07.03.2016

We are not FBI (Federal Bureau of Investigation) or Magician. Please tell us the error. Anyway,

PHP код:
format(strsizeof(str), "Command\tDescription\tPlaying\n\
{ffffff}/minigun\t{F7FF00}Minigun Deathmatch\t{0099FF}(%d players)\n{ffffff}/minigun\t{F7FF00}Minigun Deathmatch\t{0099FF}(%d players)"
minigundmcountmrfdmcount)
ShowPlayerDialog(playeridDIALOG_DMSDIALOG_STYLE_TABLIST_HEADERS"Deathmatch"str"Select""Close"); 



Re: Help - BlackEvils - 07.03.2016

Quote:
Originally Posted by MicroKyrr
Посмотреть сообщение
We are not FBI (Federal Bureau of Investigation) or Magician. Please tell us the error. Anyway,

PHP код:
format(strsizeof(str), "Command\tDescription\tPlaying\n\
{ffffff}/minigun\t{F7FF00}Minigun Deathmatch\t{0099FF}(%d players)\n{ffffff}/minigun\t{F7FF00}Minigun Deathmatch\t{0099FF}(%d players)"
minigundmcountmrfdmcount)
ShowPlayerDialog(playeridDIALOG_DMSDIALOG_STYLE_TABLIST_HEADERS"Deathmatch"str"Select""Close"); 
Thx you