27.05.2017, 22:17
Quote:
Remove Params Cause You're not using it, And instead of wasting Your time on enums, Just Use defines
P.S: in enums the ID Will be generated Randomly So It can Cause a bug :P (it can Generate Same IDs For 2 Dialogs) Код:
#define DIALOG_UNUSED 0 #define DIALOG_LOGIN 1 #define DIALOG_REGISTER 2 #define DIALOG_WEAPONS 3 Код:
CMD:build(playerid) { if(!IsPlayerInRangeOfPoint(playerid, 1.0, 2795.5701,2793.7720,17.6763)) return SendClientMessage(playerid, -1, "You Cannot Use This CMD While You Are Not In Range !"); new str[2500]; format(str, sizeof str, "Knife\nBaseball Bat\nAk-47\nMP5\nGrenade\nSniper"); ShowPlayerDialog(playerid, DIALOG_WEAPONS, DIALOG_STYLE_LIST, "Weapons", str, "Build", "cancel"); return 1; } |