31.08.2012, 16:10
Hey. I have this command
But it shows this: warning 213: tag mismatch - Price = 100 - PlayerHealth;
pawn Код:
COMMAND:heal(playerid, params[])
{
new Price, Float: PlayerHealth, string[64];
GetPlayerHealth(playerid, PlayerHealth);
Price = 100 - PlayerHealth;
SetPlayerHealth(playerid, 100);
GivePlayerMoney(playerid, -Price);
format(string, sizeof(string), "You have been healed. You payed %d.", Price);
SendClientMessage(playerid, GREEN, string);
return 1;
}