Sql string to list dialog
#1

Hi,
Recently I got stucked with this problem,
I try to take a string from sql and show it in a list dialog
So in the SQL the field is "Try\r\nthis" and is put on the "PInventoryComment[MAX_PLAYER][200][300]" var
Now knowing that \r\n would make a new line, then I try this....
Код:
i = 0;
while(mysql_retrieve_row())
{
mysql_fetch_field_row(PInventoryType[id][i],"type");
mysql_fetch_field_row(PInventoryName[id][i],"name");
mysql_fetch_field_row(PInventoryComment[id][i],"comment");
i = i + 1;
}

printf("%s",PInventoryComment[playerid][0]);
ShowPlayerDialog(playerid,4619,DIALOG_STYLE_LIST,"Letter",PInventoryComment[playerid][i],"ok","");
return 1;
What happen is that the printf return "Try\r\nthis",
but the list dialog show me "Try\r\nthis" in his first line and do not change line...

Thanks,
rt-2
Reply


Messages In This Thread
Sql string to list dialog (Change line problem) - by rt-2 - 10.01.2012, 05:54
Re: Sql string to list dialog - by rt-2 - 19.01.2012, 23:18
Re: Sql string to list dialog - by rt-2 - 22.01.2012, 20:54
Re: Sql string to list dialog - by [HiC]TheKiller - 22.01.2012, 21:49
Re: Sql string to list dialog - by rt-2 - 06.03.2012, 21:24

Forum Jump:


Users browsing this thread: 1 Guest(s)