Warnings after compiling -
brandypol - 19.08.2015
So I'm trying to fix the warnings that shows up when I compile my script and those two are telling me to forward two symbols:
warning 235: public function lacks forward declaration (symbol "OnPlayerTakeDamage")
warning 235: public function lacks forward declaration (symbol "OnPlayerGiveDamage")
Then I put that to the top of my script :
forward OnPlayerGiveDamage();
forward OnPlayerTakeDamage();
But I still have those warnings showing up when I compile. Can someone tell me what to do to fix them ? Yes I know that they won't keep my server from working well but I still want to fix them.
Re: Warnings after compiling -
Evocator - 19.08.2015
Make sure you are including a_samp.inc properly (#include <a_samp>)
Also download the latest server package and use it.
Re: Warnings after compiling -
brandypol - 19.08.2015
Quote:
Originally Posted by Ralfie
Make sure you are including a_samp.inc properly (#include <a_samp>)
Also download the latest server package and use it.
|
I did include a_samp.inc properly and I did download the latest server package but the problem still remains
Re: Warnings after compiling -
Dorito - 19.08.2015
You do have 'public' in front of OnPlayerTakeDamage and OnPlayerGiveDamage, right?
Re: Warnings after compiling -
brandypol - 19.08.2015
Quote:
Originally Posted by Dorito
You do have 'public' in front of OnPlayerTakeDamage and OnPlayerGiveDamage, right?
|
Well, I actually don't find them in my script :/
Re: Warnings after compiling -
Lunoxel - 19.08.2015
Put these lines in a_samp.inc:
Код:
forward OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart);
forward OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart);
Re: Warnings after compiling -
brandypol - 19.08.2015
Quote:
Originally Posted by Lunoxel
Put these lines in a_samp.inc:
Код:
forward OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart);
forward OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart);
|
Thanks a lot dude but I have a last one i'd like to fix and its that one :
warning 235: public function lacks forward declaration (symbol "OnUnoccupiedVehicleUpdate")
Do you know how to fix it ?
Re: Warnings after compiling -
Lunoxel - 19.08.2015
Yes, put it in a_samp.inc:
Код:
forward OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_x, Float:new_y, Float:new_z, Float:vel_x, Float:vel_y, Float:vel_z);
+REP ?
Re: Warnings after compiling -
ikkentim - 20.08.2015
You better download the latest server package and copy all files from pawno/include to your server's pawno/include folder