ShowPlayerDialog enum
#1

Ok so, i made a simple 24/7 shop where players can buy anything they want.

Currently shop dialog is this:

pawn Code:
ShowPlayerDialog(playerid, DIALOG_SHOP, DIALOG_STYLE_LIST, "24/7 Shop", "Lighter - ("GREEN"$"#LIGHTER_COST") "WHITE"\nGps - ("GREEN"$"#GPS_COST") "WHITE"\nMarijuana Seeds - ("GREEN"$"#MARIJUANA_5_SEEDS_COST") "WHITE"\nCocaine Seeds - ("GREEN"$"#COCAINE_5_SEEDS_COST") "WHITE"\nHeroin Seeds - ("GREEN"$"#HEROIN_5_SEEDS_COST")\nPhone - ("GREEN"$"#PHONE_COST")\nTop Up Phone Credit\nFishing Rod - ("GREEN"$"#FISHING_ROD_COST") "WHITE"", "Buy", "Cancel");
As you can see, the dialog text is so damn long, my question now is...it's possible to store this items maybe in an enum and show them in the dialog? And how i should work with dialog response if i do in this way?

Thanks.
Reply


Messages In This Thread
ShowPlayerDialog enum - by KinderClans - 30.10.2018, 22:02
Re: ShowPlayerDialog enum - by IdonTmiss - 30.10.2018, 22:20
Re: ShowPlayerDialog enum - by KinderClans - 30.10.2018, 22:31
Re: ShowPlayerDialog enum - by KinderClans - 30.10.2018, 22:51
Re: ShowPlayerDialog enum - by UFF - 31.10.2018, 04:06
Re: ShowPlayerDialog enum - by Gammix - 31.10.2018, 04:26
Re: ShowPlayerDialog enum - by TheToretto - 31.10.2018, 08:02
Re: ShowPlayerDialog enum - by KinderClans - 31.10.2018, 09:32
Re: ShowPlayerDialog enum - by TheToretto - 31.10.2018, 10:00
Re: ShowPlayerDialog enum - by KinderClans - 31.10.2018, 11:10
Re: ShowPlayerDialog enum - by Y_Less - 31.10.2018, 11:17
Re: ShowPlayerDialog enum - by KinderClans - 31.10.2018, 11:42
Re: ShowPlayerDialog enum - by TheToretto - 31.10.2018, 11:46
Re: ShowPlayerDialog enum - by Y_Less - 31.10.2018, 11:47
Re: ShowPlayerDialog enum - by TheToretto - 31.10.2018, 11:50
Re: ShowPlayerDialog enum - by KinderClans - 31.10.2018, 14:06
Re: ShowPlayerDialog enum - by TheToretto - 31.10.2018, 14:27
Re: ShowPlayerDialog enum - by KinderClans - 31.10.2018, 14:55
Re: ShowPlayerDialog enum - by TheToretto - 31.10.2018, 15:17
Re: ShowPlayerDialog enum - by KinderClans - 31.10.2018, 20:32

Forum Jump:


Users browsing this thread: 1 Guest(s)