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
#2

Код:
Command:buyguns(playerid,params[])
Try like this

May be this will work
Reply
#3

Quote:
Originally Posted by Dark Killer
Посмотреть сообщение
Код:
Command:buyguns(playerid,params[])
Try like this

May be this will work
I get this, symbol is never used: "buygun". But thanks anyways.
Reply
#4

Bump?
Reply
#5

lower dialog id insted of using 45867 use for ex. 4585
Reply
#6

Quote:
Originally Posted by ancezas
Посмотреть сообщение
lower dialog id insted of using 45867 use for ex. 4585
Thanks man
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)