Posts: 248
Threads: 40
Joined: Feb 2015
i just trying do it:
pawn Код:
else if(newkeys == KEY_FIRE){
if(IsPlayerInRangeOfPoint(playerid, 2.4, -1343.5695,-210.2208,14.1484))
{
new str[86];
format(str, sizeof(str), "Weapons","AK47\n\nM4");
ShowPlayerDialog(playerid, DialogBoxEx, DIALOG_STYLE_MSGBOX, "Weapons", str, "Ok", "Ok");
}
return 1;
}
but when i go to this location, and press key fire, not show. what is wrong or what are left?
Posts: 248
Threads: 40
Joined: Feb 2015
Posts: 1,830
Threads: 49
Joined: Nov 2014
Reputation:
0
Show the full OnPlayerKeyStateChange.
Posts: 248
Threads: 40
Joined: Feb 2015
pawn Код:
if(newkeys & KEY_FIRE){
if(IsPlayerInRangeOfPoint(playerid, 2.4, -1343.5695,-210.2208,14.1484))
{
new str[86];
format(str, sizeof(str), "Weapons","AK47\n\nM4");
ShowPlayerDialog(playerid, DialogBoxEx, DIALOG_STYLE_MSGBOX, "Weapons", str, "Ok", "Ok");
}
return 1;
}
Dialog called:
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DialogBoxEx)
{
if(response)
{
if(listitem == 0)
{
GiveItem[playerid][MED_KIT] = 1;
}
if(listitem == 1)
{
GiveItem[playerid][binoculars] = 1;
}
if(listitem == 2)
{
GiveItem[playerid][bandage] = 1;
}
if(listitem == 3)
{
GiveItem[playerid][AK47] = 1;
}
if(listitem == 4)
{
GiveItem[playerid][M4A1] = 1;
}
if(listitem == 5)
{
GiveItem[playerid][MAP] = 1;
}
if(listitem == 6)
{
GiveItem[playerid][FULL_BOTTLE] = 1;
}
}
}
Posts: 1,830
Threads: 49
Joined: Nov 2014
Reputation:
0
Is that everything you have under OnPlayerKeyStateChange?
Posts: 248
Threads: 40
Joined: Feb 2015
Quote:
Originally Posted by CalvinC
Is that everything you have under OnPlayerKeyStateChange?
|
this dialog that does not appear yes.
Posts: 1,830
Threads: 49
Joined: Nov 2014
Reputation:
0
I'm not only talking about the dialog, show the full OnPlayerKeyStateChange code.
Posts: 248
Threads: 40
Joined: Feb 2015