How to fix these? - 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: How to fix these? (
/showthread.php?tid=207400)
How to fix these? -
ifly4life - 06.01.2011
C:\Users\Brad\Documents\Host SA-mp 0.3C\gamemodes\LV-RP.pwn(2946) : error 025: function heading differs from prototype
C:\Users\Brad\Documents\Host SA-mp 0.3C\gamemodes\LV-RP.pwn(2953) : error 025: function heading differs from prototype
C:\Users\Brad\Documents\Host SA-mp 0.3C\gamemodes\LV-RP.pwn(2960) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Errors.
Re: How to fix these? -
Rachael - 06.01.2011
Good grief.
if it is a function you have defined, find the forward, and make sure the parameters in the forward match the parameters in the function.
eg
pawn Код:
forward ThisMyFunction(playerid, string[]);
...
public ThisMyFunction(playerid, string)
{
...
}
...will give this kind of error ( to fix it change string to string[] in the public function )
if the function is a native function, find it in your includes, and make sure the parameter labels are the same similar to how I described above.
also: make sure you have not forwarded a function which is already forwarded in an include.
also: check the wiki to see if your script uses some of the functions that have been changed for 0.3c
https://sampwiki.blast.hk/wiki/Category:Added_in_0.3c
maybe also check this thread for functions that have been changed
https://sampforum.blast.hk/showthread.php?tid=194031
good luck