30.10.2018, 22:02
Ok so, i made a simple 24/7 shop where players can buy anything they want.
Currently shop dialog is this:
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.
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");
Thanks.
