string in Dialog
#1

Can someone tell me how to add multiple strings in dialog of style DIALOG_STYLE_TABLIST_HEADERS.
Код:
ShowPlayerDialog(playerid, DIALOG_CHOOSETEAM, DIALOG_STYLE_TABLIST_HEADERS, "Choose Team:",
"Team\tPlayers\tScore\n\
Blue",bluePlayersS\blueScoreS\
"Red"\redPlayersS\redScoreS,
"Choose", "Cancel");
Reply
#2

https://sampwiki.blast.hk/wiki/Format
Reply
#3

You mean more line? right?

If yes, so here you go:-

PHP код:
ShowPlayerDialog(playeridDIALOG_CHOOSETEAMDIALOG_STYLE_TABLIST_HEADERS"Choose Team:",
"Team\tPlayers\tScore\n\
Blue,bluePlayersS\tblueScoreS\n\
Red\redPlayersS\tredScoreS"
,
"Choose""Cancel"); 
You had added extra inverted commas and you had not added \t and \n\ and some places.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)