OnDialogResponse
#7

Tried this:
pawn Code:
if(dialogid == 7)
    {
        print("Opening Dialog");
        if(response)
        {
            print("Choosing a Weapon");
            if(GetPlayerCash(playerid) < WEAPON_SHOP[listitem][WEAPON_PRICE])
            {
                SendClientMessage(playerid, 0xAA0000FF, ""COL_RED"[ERROR] You don't have enough money to buy this item.");
            }
            GivePlayerCash(playerid, -WEAPON_SHOP[listitem][WEAPON_PRICE]);
            GivePlayerWeapon(playerid, WEAPON_SHOP[listitem][WEAPON_ID], WEAPON_SHOP[listitem][WEAPON_AMMO]);

            GameTextForPlayer(playerid, "~g~Item Purchased!", 3000, 3);
            print("Weapon Bought");
        }
    }
The printf doesnt show.
Reply


Messages In This Thread
OnDialogResponse - by ChandraLouis - 21.05.2020, 12:34
Re: OnDialogResponse - by Skimmer - 21.05.2020, 12:52
Re: OnDialogResponse - by ChandraLouis - 21.05.2020, 14:40
Re: OnDialogResponse - by Skimmer - 21.05.2020, 14:49
Re: OnDialogResponse - by ChandraLouis - 21.05.2020, 14:51
Re: OnDialogResponse - by Skimmer - 21.05.2020, 15:24
Re: OnDialogResponse - by ChandraLouis - 21.05.2020, 15:46
Re: OnDialogResponse - by Skimmer - 21.05.2020, 15:51
Re: OnDialogResponse - by ChandraLouis - 21.05.2020, 15:57
Re: OnDialogResponse - by Skimmer - 21.05.2020, 16:23

Forum Jump:


Users browsing this thread: 1 Guest(s)