03.07.2016, 17:35
Do you have PlayerInfo defined?
If you do, here:
If you do, here:
Код:
#define JOB_LIST 5413 CMD:job(playerid, params[]) { ShowPlayerDialog(playerid, JOB_LIST, DIALOG_STYLE_LIST, "Job List", "Job #1\nJob #2\Job #3", "Select", "Nevermind"); return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { switch(dialogid) { case JOB_LIST: { switch(listitem) { case 0: { SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}JOB: {FFFFFF}Your job is now Job #1"); PlayerInfo[playerid][pJob] = 1; // assuming you have it defined } case 1: { SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}JOB: {FFFFFF}Your job is now Job #2"); PlayerInfo[playerid][pJob] = 2; // assuming you have it defined } case 2: { SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}JOB: {FFFFFF}Your job is now Job #3"); PlayerInfo[playerid][pJob] = 3; // assuming you have it defined } } } } return 1; }