multiline string help
#3

It depends on where do you wanna show these information..
- If you wanna show it in a Dialog, use "\n" to make a new line.
- If you wanna show it as a textdraw, use "~n~".

Example:
pawn Code:
format(string,sizeof(string),"ItemData(idx[%d]\nName[%s]\nInfo[%s]\n ....", item_idx, Item[item_idx][Name], Item[item_idx][Info]);
ShowPlayerDialog(playerid, DIALOGNAME, DIALOG_STYLE_MSGBOX,"Title",string,"OK");
Reply


Messages In This Thread
multiline string help - by boynumber5 - 28.11.2014, 07:33
Re: multiline string help - by Jonesy96 - 28.11.2014, 09:14
Re: multiline string help - by Juvanii - 28.11.2014, 10:06
Re: multiline string help - by boynumber5 - 28.11.2014, 11:44

Forum Jump:


Users browsing this thread: 1 Guest(s)