Command not showing dialog.
#1

Heres the code.
pawn Код:
command(buygun, playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 3, 308.1920, -141.4633, 999.6016))
    {
        if(Player[playerid][GunLicence] == 1)
        {
            ShowPlayerDialog(playerid, 45867, DIALOG_STYLE_LIST, "Ammu-Nation", "Melee Weapons\nPistols\nShotguns\nSub-Machine Guns\nAssault Rifles\nRifles\n", "Select", "Cancel");
        }
        else
        {
            SendClientMessage(playerid, WHITE, "You don't own a gun licence, You can get one by contacting the police.");
        }
    }
    else
    {
        SendClientMessage(playerid, WHITE, "You are not in range of the /buygun point, If you need help finding it use /n or /helpme.");
    }
    return 1;
}
When I type the command it doesn't show the dialog or do anything I don't see whats wrong with it.
Reply


Messages In This Thread
Command not showing dialog. - by iArko - 06.01.2013, 10:20
Re: Command not showing dialog. - by Dark Killer - 06.01.2013, 10:24
Re: Command not showing dialog. - by iArko - 06.01.2013, 10:29
Re: Command not showing dialog. - by iArko - 06.01.2013, 14:06
Re: Command not showing dialog. - by ancezas - 06.01.2013, 15:56
Re: Command not showing dialog. - by iArko - 06.01.2013, 16:02

Forum Jump:


Users browsing this thread: 2 Guest(s)