Information into dialog list
#1

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
Reply
#2

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","");
Reply
#3

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", "" );
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)