#1

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");
Reply
#2

What you mean?
Reply
#3

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

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?
Reply
#5

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

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
Reply
#7

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"); 
Reply
#8

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)