21.05.2020, 15:46
Tried this:
The printf doesnt show.
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");
}
}