SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 26/06/2009, 05:20 AM   #1
bishop934
Little Clucker
 
Join Date: Jun 2009
Posts: 18
Reputation: 0
Default Prototype error

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 (c) 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!
bishop934 is offline  
Old 26/06/2009, 07:00 AM   #2
Correlli
Godfather
 
Correlli's Avatar
 
Join Date: May 2009
Location: Slovenia
Posts: 7,168
Reputation: 361
Default Re: Prototype error

Code:
OnVehicleMod(playerid, vehicleid, componentid);
OnVehiclePaintjob(playerid, vehicleid, paintjobid);
OnVehicleRespray(playerid, vehicleid, color1, color2);

This is how it should be.
Correlli is offline  
Old 26/06/2009, 07:40 AM   #3
bishop934
Little Clucker
 
Join Date: Jun 2009
Posts: 18
Reputation: 0
Default Re: Prototype error

Thanks man! Fixed it and now able to compile
bishop934 is offline  
Old 26/06/2009, 05:08 PM   #4
Correlli
Godfather
 
Correlli's Avatar
 
Join Date: May 2009
Location: Slovenia
Posts: 7,168
Reputation: 361
Default Re: Prototype error

You're welcome. :P
Correlli is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
error 025: function heading differs from prototype ! vardanega Scripting Help 6 22/03/2012 01:54 PM
[ERROR] function heading differs from prototype Rand_Omar Help Archive 8 29/03/2010 07:48 PM
function heading differs from prototype [HKS]dlegend Help Archive 3 20/10/2009 07:03 PM


All times are GMT. The time now is 10:53 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.