SA-MP Forums Archive
Information into dialog list - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Information into dialog list (/showthread.php?tid=264477)



Information into dialog list - King Ace - 26.06.2011

So i want take this code and put it into dialog list.
Код:
format(string, sizeof(string), "Family %d| Name %s | Leader %s | Members %d.",number,FamilyInfo[i][FamilyName],FamilyInfo[i][FamilyLeader],FamilyInfo[i][FamilyMembers]);
Should look something like that:
Family Name Leader Members


Re: Information into dialog list - serman - 26.06.2011

i think it should work ..
not tested ..
format(string, sizeof(string), "Family %d \n Name %s \n Leader %s \n Members %d.",number,FamilyInfo[i][FamilyName],FamilyInfo[i][FamilyLeader],FamilyInfo[i][FamilyMembers]);

ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"You rText",string,"ok","");


Re: Information into dialog list - Mean - 26.06.2011

Use DIALOG_STYLE_MSGBOX with the format serman gave^. So code:
pawn Код:
format( string, sizeof string, "Family %d\n Name %s\n Leader %s\n Members %d", number, FamilyInfo[ i ][ FamilyName ], FamilyInfo[ i ][ FamilyLeader ], FamilyInfo[ i ][ FamilyMembers ] );
ShowPlayerDialog( playerid, 668, DIALOG_STLYE_MSGBOX, "Family info", string, "Close", "" );