SA-MP Forums Archive
Need help (Warnings) - 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: Need help (Warnings) (/showthread.php?tid=383219)



Need help (Warnings) - JustinAn - 06.10.2012

Код:
warning 235: public function lacks forward declaration (symbol "OnUnoccupiedVehicleUpdate")
warning 235: public function lacks forward declaration (symbol "OnPlayerTakeDamage")
warning 235: public function lacks forward declaration (symbol "OnPlayerGiveDamage")
Yea, these I wanna fix them but I can't.
Also I've already got the NEWEST yINI, and still nothing - Same warnings.
Even though it's warnings I still want to fix it.
Need the help quick.
Thanks.
Justin.


Re: Need help (Warnings) - Red_Dragon. - 06.10.2012

pawn Код:
forward "EACH WORD HERE"



Re: Need help (Warnings) - gtakillerIV - 06.10.2012

Use forward, ex:
PHP код:
forward OnPlayerTakeDamage(playeridissueridFloat:amountweaponid
REMEMBER that the parameters have to be the same as the one you have in your public function!

Parameters:OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)

Parameters= Green Color.


Re: Need help (Warnings) - JustinAn - 06.10.2012

Alright thanks guys, worked !


AW: Need help (Warnings) - Nero_3D - 07.10.2012

If you get / got these warnings you mostly used an outdated a_samp.inc version
Just download the newest server package


Re: Need help (Warnings) - JaKe Elite - 07.10.2012

You've outdated a_samp.inc

Download the latest a_samp.inc