Need a bit of help...
#1

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?"
Reply
#2

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"
Reply
#3

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);
Reply
#4

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..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)