Skin selection via inputtext?
#4

You already check the dialogid if it's equal with SHOP_DIALOG so you don't have to check if the dialogid is equal to 0 (using switch) when you already know that dialogid is equal to SHOP_DIALOG.

I was editing the post while you posted, but I don't know how you've used the dialog yet so read this one:

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
If you don't use DIALOG_STYLE_LIST in SHOP_DIALOG dialog, then listitem will be -1 so you will need to change:
pawn Код:
if (!listitem) ShowPlayerDialog(playerid, SHOP_SKIN, DIALOG_STYLE_INPUT, "Enter a valid Skin ID.", "",  "OK", "Cancel");
to:
pawn Код:
ShowPlayerDialog(playerid, SHOP_SKIN, DIALOG_STYLE_INPUT, "Enter a valid Skin ID.", "",  "OK", "Cancel");
Reply


Messages In This Thread
Skin selection via inputtext? - by rangerxxll - 01.03.2014, 19:02
Re: Skin selection via inputtext? - by Konstantinos - 01.03.2014, 19:08
Re: Skin selection via inputtext? - by rangerxxll - 01.03.2014, 19:12
Re: Skin selection via inputtext? - by Konstantinos - 01.03.2014, 19:16
Re: Skin selection via inputtext? - by rangerxxll - 01.03.2014, 19:19
Re: Skin selection via inputtext? - by Konstantinos - 01.03.2014, 19:22
Re: Skin selection via inputtext? - by rangerxxll - 01.03.2014, 19:23
Re: Skin selection via inputtext? - by Konstantinos - 01.03.2014, 19:25

Forum Jump:


Users browsing this thread: 2 Guest(s)