help my with command
#3

Do you have PlayerInfo defined?
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;
}
Reply


Messages In This Thread
help my with command - by organe. - 03.07.2016, 17:20
Re: help my with command - by Stinged - 03.07.2016, 17:25
Re: help my with command - by Theepiccoder - 03.07.2016, 17:35
Re: help my with command - by organe. - 03.07.2016, 17:41
Re: help my with command - by Stinged - 03.07.2016, 17:54

Forum Jump:


Users browsing this thread: 1 Guest(s)