13.11.2010, 12:16
pawn Код:
if(current == colt45) //Colt45
{
switch(row)
{
case 0:
{
if( GetPlayerMoney(playerid) < 240)
{
SendClientMessage(playerid, COLOR_RED, "ERROR : You don't have enough money!");
ShowMenuForPlayer(colt45, playerid);
return 1;
}
else
{
GivePlayerWeapon(playerid, 22, 30), GivePlayerMoney(playerid, -240), ShowMenuForPlayer(colt45, playerid);
}
}
}
Try this. And indent ur code, don't write everything to 1line.