Prototype error
#1

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

pawn Code:
OnVehicleMod(playerid, vehicleid, componentid);
OnVehiclePaintjob(playerid, vehicleid, paintjobid);
OnVehicleRespray(playerid, vehicleid, color1, color2);
This is how it should be.
Reply
#3

Thanks man! Fixed it and now able to compile
Reply
#4

You're welcome. :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)