How to fix these?
#1

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)