30.08.2010, 12:39
Okay i have made a few menus before but now this one isnt working, someone mind helping me out?
btw its all in zcmd and sscanf
i have this up the top, i just used random numbers because i didnt keep it oranised with the first 10 menus i have made so im afraid i might type in the same menu id
the command:
and the thingy at the bottom
when i type /jobs in the game it doesnt even show a menu please help
btw its all in zcmd and sscanf
i have this up the top, i just used random numbers because i didnt keep it oranised with the first 10 menus i have made so im afraid i might type in the same menu id
pawn Код:
#define JOB 41469
#define COP_JOB 34566
#define RAPIST_JOB 23566
#define WHORE_JOB 9754
#define CRIMINAL_JOB 23456
the command:
pawn Код:
CMD:jobs(playerid,params[])
{
ShowPlayerDialog(playerid, JOB, DIALOG_STYLE_LIST,"Jobs","Police\nCriminal\nRapist\nWhore\n", "Select", "Exit");
return 1;
}
pawn Код:
if(dialogid == JOB)
{
if(response)
{
if(listitem == 0)
{
SendClientMessage(playerid,LIMEGREEN,"You are now a police officer!");
PlayerJobs[playerid][Police] = 1;
}
if(listitem == 1)
{
SendClientMessage(playerid,LIMEGREEN,"You are now a criminal!");
PlayerJobs[playerid][Criminal] = 1;
}
if(listitem == 2)
{
SendClientMessage(playerid,LIMEGREEN,"You are now a rapist!");
PlayerJobs[playerid][Rapist] = 1;
}
if(listitem == 3)
{
SendClientMessage(playerid,LIMEGREEN,"You are now a whore!");
PlayerJobs[playerid][Whore] = 1;
}
}
}