SAMP - How to add one callback - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SAMP - How to add one callback (
/showthread.php?tid=537325)
SAMP - How to add one callback -
Gogeta101 - 14.09.2014
How to add CallBack OnPlayerWeaponShoot to my script ?
Re: SAMP - How to add one callback -
rymax99 - 14.09.2014
https://sampwiki.blast.hk/wiki/OnPlayerWeaponShot
Код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
return 1;
}
Re: SAMP - How to add one callback -
Gogeta101 - 14.09.2014
warning 235: public function lacks forward declaration (symbol "OnPlayerWeaponShot")
Re: SAMP - How to add one callback -
rymax99 - 14.09.2014
You're more than likely using old includes. The OnPlayerWeaponShot callback is pretty new.
Replace all of the stock includes to the newest ones:
http://files.sa-mp.com/samp03z_svr_R4_win32.zip