SA-MP Forums Archive
Errors when trying to compile script - 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: Errors when trying to compile script (/showthread.php?tid=87010)



Errors when trying to compile script - Kempii - 17.07.2009

Hello,

I have a problem when i wanna compile my script for a long time and i can't find out what is wrong.
Here the errors:

Код:
C:\Documents and Settings\AMDAthlonX2\Bureaublad\Sa-mp versions\RAR'S\GM\samp02Xserver.win32\gamemodes\TWr3.pwn(3394) : error 025: function heading differs from prototype
C:\Documents and Settings\AMDAthlonX2\Bureaublad\Sa-mp versions\RAR'S\GM\samp02Xserver.win32\gamemodes\TWr3.pwn(3400) : error 025: function heading differs from prototype
C:\Documents and Settings\AMDAthlonX2\Bureaublad\Sa-mp versions\RAR'S\GM\samp02Xserver.win32\gamemodes\TWr3.pwn(3406) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
and these are the lines:
Код:
public OnVehicleMod(vehicleid,componentid)
{
  if(onsys[vehicleid] == 1) SaveComponent(vehicleid,componentid);
	return 1;
}

public OnVehiclePaintjob(vehicleid,paintjobid)
{
  if(onsys[vehicleid] == 1) SavePaintjob(vehicleid,paintjobid);
	return 1;
}

public OnVehicleRespray(vehicleid,color1,color2)
{
  if(onsys[vehicleid] == 1) SaveColors(vehicleid,color1,color2);
  return 1;
}
what is the problem cause i need to fix my script?
Thnx if u can help me!


Re: Errors when trying to compile script - M4S7ERMIND - 17.07.2009

It should be like this

Код:
OnVehicleMod(playerid,vehicleid,componentid)
OnVehiclePaintjob(playerid, vehicleid, paintjobid)
OnVehicleRespray(playerid, vehicleid, color1, color2)



Re: Errors when trying to compile script - HuRRiCaNe - 17.07.2009

next time search for the callbacks .


Re: Errors when trying to compile script - Kempii - 17.07.2009

Thnx for the help guys