Prototype error - 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: Prototype error (
/showthread.php?tid=83577)
Prototype error -
bishop934 - 26.06.2009
I was trying to fix a mod called [Stunt'n'Drift'n'Race'n'Pwn]. And was fixing the rules in it. And when I go to compile it, I get this.
Code:
C:\Documents and Settings\Ray\Desktop\GTA SAMP Server\gamemodes\xSDRP.pwn(2261) : error 025: function heading differs from prototype
C:\Documents and Settings\Ray\Desktop\GTA SAMP Server\gamemodes\xSDRP.pwn(2267) : error 025: function heading differs from prototype
C:\Documents and Settings\Ray\Desktop\GTA SAMP Server\gamemodes\xSDRP.pwn(2273) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Errors.
When I go to see what it's talking about it's pointing at these 3 lines
Code:
public OnVehicleMod(vehicleid,componentid)
{
SaveComponent(vehicleid,componentid);
return 1;
}
public OnVehiclePaintjob(vehicleid,paintjobid)
{
SavePaintjob(vehicleid,paintjobid);
return 1;
}
public OnVehicleRespray(vehicleid,color1,color2)
{
SaveColors(vehicleid,color1,color2);
return 1;
}
I don't get it!
Re: Prototype error -
Correlli - 26.06.2009
pawn Code:
OnVehicleMod(playerid, vehicleid, componentid);
OnVehiclePaintjob(playerid, vehicleid, paintjobid);
OnVehicleRespray(playerid, vehicleid, color1, color2);
This is how it should be.
Re: Prototype error -
bishop934 - 26.06.2009
Thanks man! Fixed it and now able to compile
Re: Prototype error -
Correlli - 26.06.2009
You're welcome. :P