28.12.2010, 07:20
pawn Код:
ShowPlayerDialog(playerid, DIALOG_BANK_MENU, DIALOG_STYLE_LIST, LoadText(playerid, "BANK"), LoadText(playerid, "BANK_LIST"), LoadText(playerid, "SELECT2"), LoadText(playerid, "CANCEL"));
ShowPlayerDialog(playerid, DIALOG_BANK_MENU, DIALOG_STYLE_LIST, LoadText(playerid, "BANK"), LoadText(playerid, "BANK_LIST"), LoadText(playerid, "SELECT2"), LoadText(playerid, "CANCEL"));
new listitems[] = "Games\nMovies\nBank";
ShowPlayerDialog(playerid, DIALOG_BANK_MENU, DIALOG_STYLE_LIST, LoadText(playerid, "BANK"), listitems, LoadText(playerid, "SELECT2"), LoadText(playerid, "CANCEL"));
ShowPlayerDialog(playerid, DIALOG_BANK_MENU, DIALOG_STYLE_LIST, "Bank" "Balance\nWithdraw\nDeposit\nTransfer\nBuy Insurance (Protects to bank)", "Select", "Cancel");
You should use your list items like that...
On top of your gamemode: pawn Код:
just insert it like that: pawn Код:
|
Try printing the LoadText(playerid, "BANK_LIST") to the server console.
I think you have double backslashes in it. Like: "Balance\\nWithdraw\\nDeposit\\nTransfer\\nBuy Insurance (Protects to bank)" |
[14:22:17] Balance\nWithdraw\nDeposit\nTransfer\nBuy insurance(Protects from bank robberies)\nRob Bank