OnDialogRespons HELP !+REP
#6

As you can see now I adding bracket because the codes does two lines.

pawn Код:
case 0:
{
    if(GetPlayerMoney(playerid) < PRICE_HE_SHOULD HAVE) return SendClientMessage(playerid, COLOR, "poorguys")
    GivePlayerWeapon(playerid,41,500), GivePlayerMoney(playerid,-500);
}
// do the same thing for the second case.
by addind this line :
pawn Код:
if(GetPlayerMoney(playerid) < PRICE_HE_SHOULD HAVE) return SendClientMessage(playerid, COLOR, "poorguys")
// remplace "PRICE_HE_SHOULD_HAVE" by the price of the guns.. and "poorguys" by your message.
Reply


Messages In This Thread
OnDialogRespons HELP !+REP - by C0olp1x - 15.11.2014, 18:27
Re: OnDialogRespons HELP !+REP - by ilepopivanov - 15.11.2014, 18:33
Re: OnDialogRespons HELP !+REP - by C0olp1x - 15.11.2014, 18:39
Re: OnDialogRespons HELP !+REP - by Adawg - 15.11.2014, 18:41
Re: OnDialogRespons HELP !+REP - by C0olp1x - 15.11.2014, 18:43
Re: OnDialogRespons HELP !+REP - by Adawg - 15.11.2014, 18:47
Re: OnDialogRespons HELP !+REP - by DavidBilla - 15.11.2014, 18:49
Re: OnDialogRespons HELP !+REP - by C0olp1x - 15.11.2014, 18:51

Forum Jump:


Users browsing this thread: 1 Guest(s)