need help with dialog
#1

I am making an gun system but you have to go to a gun vending machine a pickup the briefcase for the menu to come up.But when i pickup the briefcase nothing happen and i didnt get no errors.
here is the script:

public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == weapon)
{
if(IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid,-1,"Get out your car");
}
else
{
ShowPlayerDialog(playerid, DIALOG_WEAPONS, DIALOG_STYLE_LIST, "{6EF83C}Reckless Ammunitions", "\n{F81414}Armour($3000)\nHealth($2000)\n{FFFFFF}S niper Rifle($3500)\nTec-9($3000)\nMP5($3000)\nUzi($3000)\nConbat Shotgun($2300)\nSawnoff($2200)\nShotgun($2200)\nDe sert Eagle($1900)\nSilenced 9mm($1500)\n9mm($1500)\nM4($4000)", "buy", "close");
}
}
return 1;
}
Reply
#2

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == weapon)
    {
        if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,-1,"Get out your car");
        ShowPlayerDialog(playerid, DIALOG_WEAPONS, DIALOG_STYLE_LIST, "{6EF83C}Reckless Ammunitions",         "\n{F81414}Armour($3000)\nHealth($2000)\n{FFFFFF}S niper Rifle($3500)\nTec-9($3000)\nMP5($3000)\nUzi($3000)\nConbat Shotgun($2300)\nSawnoff($2200)\nShotgun($2200)\nDe sert Eagle($1900)\nSilenced 9mm($1500)\n9mm($1500)\nM4($4000)", "buy", "close");
    }
    return 1;
}
Try it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)