13.02.2014, 07:22
I don't know what the 2 extra }'s are for.. so try
pawn Код:
if(listitem == 1)
{
if(GetPlayerMoney(playerid) < 15000)
return SendClientMessage(playerid,COLOR_RED, "You do not have enough money.");
GivePlayerMoney(playerid, -15000);
GivePlayerWeapon(playerid, 27, 300);
SendClientMessage(playerid,COLOR_GREEN,"You bought a Combat Shotgun for $15000.");
return 1;
}