10.01.2012, 05:54
(
Последний раз редактировалось rt-2; 19.01.2012 в 23:20.
)
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....
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
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;
but the list dialog show me "Try\r\nthis" in his first line and do not change line...
Thanks,
rt-2