if(dialogid == 8) { if(response == 1) { switch(listitem) { case 0: { if(GetPlayerMoney(playerid) < 2000) { } else { GivePlayerMoney(playerid,-2000); GivePlayerWeapon(playerid,22,100); } }