Dialog problem
#1



pawn Код:
ShowPlayerDialog(playerid, DIALOG_BANK_MENU,  DIALOG_STYLE_LIST, LoadText(playerid, "BANK"), LoadText(playerid, "BANK_LIST"), LoadText(playerid, "SELECT2"), LoadText(playerid, "CANCEL"));
Why it doesn't seperate with \n?
Reply
#2

You should use your list items like that...
On top of your gamemode:
pawn Код:
new listitems[] = "Games\nMovies\nBank";
Then instead of putting "LoadText"
just insert it like that:
pawn Код:
ShowPlayerDialog(playerid, DIALOG_BANK_MENU,  DIALOG_STYLE_LIST, LoadText(playerid, "BANK"), listitems, LoadText(playerid, "SELECT2"), LoadText(playerid, "CANCEL"));
HOPE it helps you.
Reply
#3

Put normal mode :

pawn Код:
ShowPlayerDialog(playerid, DIALOG_BANK_MENU,  DIALOG_STYLE_LIST, "Bank" "Balance\nWithdraw\nDeposit\nTransfer\nBuy Insurance (Protects to bank)", "Select", "Cancel");
If somehow it is wrong excuse me.
Reply
#4

I need to load from a file those list items, so it's multi language(LoadText()). Your both methods won't do the trick
Reply
#5

I do not understand why you complicit, must do as I said.
Reply
#6

Quote:
Originally Posted by exDDDD
Посмотреть сообщение
I do not understand why you complicit, must do as I said.
Did you even understand what i said?
Reply
#7

Quote:
Originally Posted by EliranPesahov
Посмотреть сообщение
You should use your list items like that...
On top of your gamemode:
pawn Код:
new listitems[] = "Games\nMovies\nBank";
Then instead of putting "LoadText"
just insert it like that:
pawn Код:
ShowPlayerDialog(playerid, DIALOG_BANK_MENU,  DIALOG_STYLE_LIST, LoadText(playerid, "BANK"), listitems, LoadText(playerid, "SELECT2"), LoadText(playerid, "CANCEL"));
HOPE it helps you.
Look what he wrote, make by model and ready.
Reply
#8

Quote:
Originally Posted by exDDDD
Посмотреть сообщение
Look what he wrote, make by model and ready.
Srsly, do you know what he's doing there? It won't work either , as i already said... -.-
Reply
#9

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)"
Reply
#10

Quote:
Originally Posted by PowerPC603
Посмотреть сообщение
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)"
pawn Код:
[14:22:17] Balance\nWithdraw\nDeposit\nTransfer\nBuy insurance(Protects from bank robberies)\nRob Bank
Is there any problem? Is this a samp bug? i use RC-6
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)