Simple Help Commands [For Beginners]
#7

Quote:
Originally Posted by [B
Vortex ]
wrong. It should be

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{  
    if (strcmp ("/healme", cmdtext, true, 10) == 0)
    {
    if(GetPlayerMoney(playerid, < 800)
    {
      SendClientMessage(playerid,COLOR_RED,"Not enough money!");
     }
    else {
      SendClientMessage(playerid, COLOR_RED, "You Have Healed Yourself.");
      SetPlayerHealth(playerid,100); //Set Player Health To 100
      SendClientMessage(playerid,COLOR_RED, "Healing Yourself Costs $800.");
      GivePlayerMoney(playerid,-800);
      return 1;
    }
}
pawn tag's indentation sucks D:
i put it right but the [pawn] put it wrong
Reply


Messages In This Thread
Simple Help Commands [For Beginners] - by legendario - 14.09.2009, 21:46
Re: Simple Help Commands [For Beginners] - by _Vortex - 14.09.2009, 21:58
Re: Simple Help Commands [For Beginners] - by legendario - 14.09.2009, 22:03
Re: Simple Help Commands [For Beginners] - by _Vortex - 14.09.2009, 22:04
Re: Simple Help Commands [For Beginners] - by legendario - 14.09.2009, 22:08
Re: Simple Help Commands [For Beginners] - by _Vortex - 14.09.2009, 22:11
Re: Simple Help Commands [For Beginners] - by legendario - 14.09.2009, 22:12
Re: Simple Help Commands [For Beginners] - by Donny_k - 14.09.2009, 22:14
Re: Simple Help Commands [For Beginners] - by legendario - 14.09.2009, 22:17
Re: Simple Help Commands [For Beginners] - by Donny_k - 14.09.2009, 22:23

Forum Jump:


Users browsing this thread: 1 Guest(s)