PHP код:
case 55:
{
for(new idx=1; idx<MAX_HOUSES; idx++)
{
format(line1, sizeof(line1), "%s", HouseInfo[idx][hOwner]);
format(string, sizeof(string), "House Owner %s.", line1);
}
ShowPlayerDialog(playerid, 55, DIALOG_STYLE_MSGBOX, "{FF9900}House Owner",string, "Ok", "Cancel");
}
I have problem. That show me only "House Owner ." but i want do see "House Owner Mike_Night.". Help?
For loop goes on till MAX_HOUSES as you must not having all houses owned do the last one will be empty and so the name is ""which is null so it shows only house owner not name