SA-MP Forums Archive
Dialog - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Dialog (/showthread.php?tid=455893)



Dialog - HardRock - 03.08.2013

PHP код:
   case 55:
        {
            for(new 
idx=1idx<MAX_HOUSESidx++)
            {
                
format(line1sizeof(line1), "%s"HouseInfo[idx][hOwner]);
                
format(stringsizeof(string), "House Owner %s."line1);
            }
            
ShowPlayerDialog(playerid55DIALOG_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?


Re: Dialog - HardRock - 03.08.2013

Help?


Re: Dialog - sarab_singh - 03.08.2013

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