Errors when trying to compile script
#1

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

It should be like this

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

next time search for the callbacks .
Reply
#4

Thnx for the help guys
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)