14.09.2009, 22:11
wrong. It should be
pawn tag's indentation sucks D:
EDIT: Modified a minor error.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp ("/healme", cmdtext, true, 10) == 0)
{
if(GetPlayerMoney(playerid, < 800)
{
SendClientMessage(playerid,COLOR_RED,"Not enough money!");
return 1;
}
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;
}
}
EDIT: Modified a minor error.