Need help with Error 10.
#3

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.
Reply


Messages In This Thread
Need help with Error 10. - by Edward2013 - 20.07.2013, 17:03
Re: Need help with Error 10. - by Lordzy - 20.07.2013, 18:01
Re: Need help with Error 10. - by Edward2013 - 20.07.2013, 18:07

Forum Jump:


Users browsing this thread: 1 Guest(s)