Quote:
Originally Posted by Lordz™
pawn Код:
#include <a_samp>
public OnPlayerUpdate(playerid) { new Float:phealth; GetPlayerHealth(playerid, phealth); if(phealth < 35.0) { TogglePlayerControllable(playerid, 0); ApplyAnimation(playerid, "CRACK", "crckidle2", 1, 0, 0, 0, 0, 0); } return 1; }
Those defines were actually useless, you have that already defined by 'a_samp' include. Secondly ' 'public OnPlayerUpdate' is a callback which uses braces to declare the code under it. You just did it like performing functions. And phealth must be a variable which must be created and also as a 'Float' variable.
|
Thanks for your help. I will use this in future.