Need Help with money check
#2

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.
Reply


Messages In This Thread
Need Help with money check - by OldDirtyBastard - 13.11.2010, 12:14
Re: Need Help with money check - by 0ne - 13.11.2010, 12:16
Re: Need Help with money check - by OldDirtyBastard - 13.11.2010, 12:22

Forum Jump:


Users browsing this thread: 1 Guest(s)