Posts: 6,129
Threads: 36
Joined: Jan 2009
Quote:
Originally Posted by Cody_Maverak
Heres how I would do it:
pawn Код:
new health; health = GetPlayerHealth(playerid); health = health-5; SetPlayerHealth(playerid, health);
|
That wouldn't work, GetPlayerHealth returns a float to the variable that is the second parameter of the function, you can't use integers and you've written the function parameters incorrectly.
https://sampwiki.blast.hk/wiki/GetPlayerHealth