Hook not being called
#1

This is my code:

Код:
hook OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
      new Text3D:id = Create3DTextLabel("test", 0xFFFFFFFF, fX, fY, fZ, 40.0, 0, 0);
      printf("created %i", _:id);

      return 1;
}
It's included in the main script and yet it's not being called at all...

When i make it a public it works.

Anybody know why this is?
Reply


Messages In This Thread
Hook not being called - by wallee - 18.01.2017, 20:09
Re: Hook not being called - by Luicy. - 18.01.2017, 20:14
Re: Hook not being called - by wallee - 18.01.2017, 20:25
Re: Hook not being called - by renatog - 18.01.2017, 20:30
Re: Hook not being called - by wallee - 18.01.2017, 20:46
Re: Hook not being called - by wallee - 19.01.2017, 09:07
Re: Hook not being called - by Misiur - 19.01.2017, 10:24
Re: Hook not being called - by wallee - 19.01.2017, 19:56
Re: Hook not being called - by Luicy. - 19.01.2017, 20:19
Re: Hook not being called - by Misiur - 19.01.2017, 20:27

Forum Jump:


Users browsing this thread: 1 Guest(s)