ERROR in a filterscript. - 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: ERROR in a filterscript. (
/showthread.php?tid=73447)
ERROR in a filterscript. -
Snyper - 15.04.2009
Whenever I compile, I get this; "error 025: function heading differs from prototype.
This is where it messes up...
public OnVehicleRespray(vehicleid, color1, color2)
{
for(new i = 0; i < sizeof(CarInfo); i++)
{
if(vehicleid == CarInfo[i][ownedvehicle])
I'm not sure what to do. I've used the search button, but everyone has a different way of fixing it.
Re: ERROR in a filterscript. -
Backwardsman97 - 15.04.2009
pawn Код:
public OnVehicleRespray(playerid,vehicleid, color1, color2)
{
for(new i = 0; i < sizeof(CarInfo); i++)
{
if(vehicleid == CarInfo[ownedvehicle])
Try that. And the reason is because in a_samp.inc, it says
pawn Код:
forward OnVehicleRespray(playerid,vehicleid, color1, color2)
and you were just missing the playerid part. Which the error is basically saying that the forward is different then the function.
Re: ERROR in a filterscript. -
Snyper - 15.04.2009
It compiled properly. Kudos.