ZCMD wont recognize command
#3

Thanks, now this part works perfectly fine. Now i got an issue with the dialog, when a person accepts the duel, the a dialog appears for you to select a weapon and then it should give you guns and another dialog should appear, to let you pick the duel area. Well it works, when i run it only with gamemode, but when i do it on my regular server the dialog appears to choose guns, and when i select an option, the dialog just dissappears and nothing happens. Heres the code:

DialogResponse:
pawn Код:
if(dialogid == GunDialog)
{
if(!response) { return 1; }
if(response){
if(listitem == 0)
{
GivePlayerWeapon(playerid, 24, 50);
GivePlayerWeapon(playerid, 25, 50);
GivePlayerWeapon(pvpinfo[pID][invID], 24, 50);
GivePlayerWeapon(pvpinfo[pID][invID], 25, 50);
ShowPlayerZoneDialog(playerid);
}
if(listitem == 1)
{
GivePlayerWeapon(playerid, 24, 100);
GivePlayerWeapon(pvpinfo[pID][invID], 24, 100);
GivePlayerWeapon(playerid, 31, 100);
GivePlayerWeapon(pvpinfo[pID][invID], 31, 100);
ShowPlayerZoneDialog(playerid);
}
if(listitem == 2)
{
GivePlayerWeapon(playerid, 25, 100);
GivePlayerWeapon(pvpinfo[pID][invID], 25, 100);
GivePlayerWeapon(playerid, 30, 100);
GivePlayerWeapon(pvpinfo[pID][invID], 30, 100);
ShowPlayerZoneDialog(playerid);
}
}
}
the function:
pawn Код:
public ShowPlayerGunDialog(playerid)
{
new dstr[200];
strcat(dstr,"{FFFFFF}»   {FF6600}Deagle/Shotgun - 50 kulkш.\n");
strcat(dstr,"{FFFFFF}»   {FF6600}Deagle/M4 - 100 kulkш.\n");
strcat(dstr,"{FFFFFF}»   {FF6600}Shotgun/AK-47 - 100 kulkш.\n");
ShowPlayerDialog(playerid, GunDialog, DIALOG_STYLE_LIST, "{FF0000}PASIRINKITE GINKLUS", dstr, "Pasirinkti", "Atрaukti");
return 1;
}
I thought maybe my GunDialod ID was interfering with other scripts, but i checked and it seems fine. Anyone know what could be the problem?
Reply


Messages In This Thread
ZCMD wont recognize command - by Type-R - 22.12.2014, 21:24
Re: ZCMD wont recognize command - by Threshold - 23.12.2014, 02:20
Re: ZCMD wont recognize command - by Type-R - 23.12.2014, 18:22
Re: ZCMD wont recognize command - by Threshold - 23.12.2014, 23:35
Re: ZCMD wont recognize command - by Type-R - 24.12.2014, 01:16
Re: ZCMD wont recognize command - by Threshold - 24.12.2014, 09:01
Re: ZCMD wont recognize command - by Type-R - 24.12.2014, 18:00
Re: ZCMD wont recognize command - by Type-R - 25.12.2014, 21:41
Re: ZCMD wont recognize command - by Ryz - 26.12.2014, 03:26

Forum Jump:


Users browsing this thread: 5 Guest(s)