SAMP - How to add one callback
#1

How to add CallBack OnPlayerWeaponShoot to my script ?
Reply
#2

https://sampwiki.blast.hk/wiki/OnPlayerWeaponShot
Код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
    return 1;
}
Reply
#3

warning 235: public function lacks forward declaration (symbol "OnPlayerWeaponShot")
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)