03.02.2013, 13:08
Add this to the top of your script:
Change the Dialog thingy to this:
And change your command to this:
The went over the id limit. I changed it for you!
Hope I helped!
Код:
#define DIALOG_JOB_1 1337 #define DIALOG_JOB_SEL_2 1338
Код:
if(dialogid == DIALOG_JOB_1) { if(!response) return 1; switch(listitem) { case 0: // Mechanic { SetPVarInt(playerid, "jobSelection", 1); ShowPlayerDialog(playerid, 7485, DIALOG_STYLE_LIST, "VIP: Job Center", "Yes", "Proceed", "Cancel"); } } } if(dialogid == DIALOG_JOB_SEL_2) { if(!response) return 1; switch(listitem) { case 0: { PlayerInfo[playerid][pJob] = GetPVarInt(playerid, "jobSelection"); SendClientMessageEx(playerid, COLOR_YELLOW, "You have changed your first job!"); } case 1: { PlayerInfo[playerid][pJob2] = GetPVarInt(playerid, "jobSelection"); SendClientMessageEx(playerid, COLOR_YELLOW, "You have changed your second job!"); } } }
Код:
CMD:htflocker(playerid, params[]) { if(!IsPlayerInRangeOfPoint(playerid, 7.0, 1089.7205, -317.7738, 73.9922, 0)) { SendClientMessageEx(playerid, COLOR_GRAD2, " You are not at the Hilltop Gang Armory Room!"); return 1; } if(PlayerInfo[playerid][pLevel] >= 1) { ShowPlayerDialog(playerid, DIALOG_JOB_1, DIALOG_STYLE_LIST, "Hilltop Farmers Armory", "First Aid Kit\nKevlar Vest\nClothes Corner\nMech Job", "Select", "Cancel"); } return 1; }
Hope I helped!