error 025: function heading differs from prototype - 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: error 025: function heading differs from prototype (
/showthread.php?tid=451291)
error 025: function heading differs from prototype -
OpticKiller - 16.07.2013
Fixed thanks for the help SAMP forums.
Re: error 025: function heading differs from prototype -
Gangster-rocks - 16.07.2013
In which line is the error?
Re: error 025: function heading differs from prototype -
OpticKiller - 16.07.2013
the error is showing on the public TutorialLoop(playerid)
Re: error 025: function heading differs from prototype -
DBan - 16.07.2013
You need to forward it correctly.
pawn Код:
forward TutorialLoop(playerid); // Placed above your callback, or more preferably, in the top portion of your script.
I'm assuming you didn't...
Re: error 025: function heading differs from prototype -
Gangster-rocks - 16.07.2013
If he didn't that wound give him an other error. like that
Код:
warning 235: public function lacks forward declaration (symbol "vdav")
O.T:
I didn't find anything wrong on the function which is confusing.
Re: error 025: function heading differs from prototype -
DBan - 16.07.2013
Quote:
Originally Posted by Gangster-rocks
If he didn't that wound give him an other error. like that
Код:
warning 235: public function lacks forward declaration (symbol "vdav")
|
Prove it in this case please.
I have reproduced the error, and the solution I gave solves it.
Re: error 025: function heading differs from prototype -
OpticKiller - 16.07.2013
thanks guys its fixed.
Quote:
Originally Posted by DBan
That is a warning... he is getting an error.
|
nah something i forgot
Код:
forward TutorialLoop()
public TutorialLoop(playerid)
i think thats why it was giving me that error. just missed the playerid on forward thanks for the help guys