Need a bit of help... - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need a bit of help... (
/showthread.php?tid=206884)
Need a bit of help... -
cloudysky - 04.01.2011
warning 235: public function lacks forward declaration (symbol "OnPlayerEnterCP")
error 021: symbol already defined: "OnPlayerEnterVehicle"
Is there away to define a symbol twice?
What does it mean by "Function lacks forward declaration?"
Re: Need a bit of help... -
DarrenReeder - 04.01.2011
the Warning is there because you have create "Public OnPlayerEnterCP()" part but have not added "forward OnPlayerEnterCP()" to the top of your script...
The error is because you have added "public OnPlayerEnterVehicle()" Twice...
---
if you want the Player entering a checkpoint callback... its actually called: "
OnPlayerEnterCheckpoint"
Re: Need a bit of help... -
<Weponz> - 04.01.2011
Its telling you that you need to forward those callbacks.
Put this on the top of you script under the includes/defines.
pawn Код:
forward OnPlayerEnterCP(playerid);
forward OnPlayerEnterVehicle(playerid, vehicleid, ispassenger);
Re: Need a bit of help... -
DarrenReeder - 04.01.2011
Quote:
Originally Posted by <Weponz>
Its telling you that you need to forward those callbacks.
Put this on the top of you script under the includes/defines.
pawn Код:
forward OnPlayerEnterCP(playerid); forward OnPlayerEnterVehicle(playerid, vehicleid, ispassenger);
|
:S OnPlayerEnterVehicle does not need a forward declaration... Its most likely due to him added the callbak twice..