20.08.2010, 06:23
Hello. I'm trying to make simple Dialog that it would print me properties, but it prints me only the one property which is the biggest ID. Here is a code:
new String[256];
for(new i = 0; i < MAX_PROPERTIES; i++)
{
format(String,256,"Property Owner\n\n%s %s",prop[i][Name], prop[i][OwnerName]);
}
ShowPlayerDialog(playerid,35,DIALOG_STYLE_MSGBOX," Properties", String,"Close","Close");
But when I put this in message server shows me all properties. What I do wrong? I know, that something with formating, because server doesn't creates new line. But what? Also when I print it server prints all properties. I need something to do that it would open one dialog with all properties.
new String[256];
for(new i = 0; i < MAX_PROPERTIES; i++)
{
format(String,256,"Property Owner\n\n%s %s",prop[i][Name], prop[i][OwnerName]);
}
ShowPlayerDialog(playerid,35,DIALOG_STYLE_MSGBOX," Properties", String,"Close","Close");
But when I put this in message server shows me all properties. What I do wrong? I know, that something with formating, because server doesn't creates new line. But what? Also when I print it server prints all properties. I need something to do that it would open one dialog with all properties.