20.05.2014, 11:54
Hello!
I have problem in dialog, whenever i want to buy an item from the store, it doesnt say that i don't have enough money.
I would like to make something that will say "you don't have enough money."
I can buy item , but if i dont have money it doesnt say that i dont.
Code:
I have problem in dialog, whenever i want to buy an item from the store, it doesnt say that i don't have enough money.
I would like to make something that will say "you don't have enough money."
I can buy item , but if i dont have money it doesnt say that i dont.
Code:
Код:
case 0: { if(GetPlayerMoney(playerid) < 2500) return SendClientMessage(playerid, 0xFFFFFF, "You don't have enough cash."); GivePlayerWeapon(playerid, 4, 1); GivePlayerMoney(playerid, -2500); } case 1: { if(GetPlayerMoney(playerid) < 2500) return SendClientMessage(playerid, 0xFFFFFF, "You don't have enough cash."); GivePlayerWeapon(playerid, 5, 1); GivePlayerMoney(playerid, -2500); } case 2: { if(GetPlayerMoney(playerid) < 2500) return SendClientMessage(playerid, 0xFFFFFF, "You don't have enough cash."); GivePlayerWeapon(playerid, 22, 5000); GivePlayerMoney(playerid, -2500); } case 3: { if(GetPlayerMoney(playerid) < 2500) return SendClientMessage(playerid, 0xFFFFFF, "You don't have enough cash."); GivePlayerWeapon(playerid, 23, 5000); GivePlayerMoney(playerid, -2500); } case 4: { if(GetPlayerMoney(playerid) < 2500) return SendClientMessage(playerid, 0xFFFFFF, "You don't have enough cash."); GivePlayerWeapon(playerid, 24, 5000); GivePlayerMoney(playerid, -2500); } case 5: { if(GetPlayerMoney(playerid) < 2500) return SendClientMessage(playerid, 0xFFFFFF, "You don't have enough cash."); GivePlayerWeapon(playerid, 25, 5000); GivePlayerMoney(playerid, -2500);