20.12.2009, 13:47
What is wrong with this?
the dialog:
the OnDialogResponse:
the dialog:
pawn Код:
ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Job List","Kidnapper\nCar Jacker\nDrugs Dealer","Ok","Cancel");
pawn Код:
if(dialogid == 1)
{
if(!response){SendClientMessage(playerid, COLOR_RED, "You canceled! typ /chosejob for chose your job another time");
new message[196];
format(message,sizeof(message), "Your job is now %s", inputtext);
SendClientMessage(playerid, COLOR_BLUE, message);
if(listitem == 1)
{
PlayerInfo[playerid][pJob] = 3;
}
if(listitem == 2)
{
PlayerInfo[playerid][pJob] = 4;
}
if(listitem == 3)
{
PlayerInfo[playerid][pJob] = 5;
}
}