Functions heading ...
#1

Код:
public OnVehicleMod(playerid,vehicleid,componentid)
{
	if (playerid!=GetPlayerFromCarlistCar(vehicleid)) {return 1;}
	if(playerid!=-1)
	{
		new mod=GetModType(componentid);
		switch (mod)
		{
		  case 1: { Carlist[playerid][mod1]=componentid; }
		  case 2: { Carlist[playerid][mod2]=componentid; }
		  case 3: { Carlist[playerid][mod3]=componentid; }
		  case 4: { Carlist[playerid][mod4]=componentid; }
		  case 5: { Carlist[playerid][mod5]=componentid; }
		  case 6: { Carlist[playerid][mod6]=componentid; }
		  case 7: { Carlist[playerid][mod7]=componentid; }
		  case 8: { Carlist[playerid][mod8]=componentid; }
		  case 9: { Carlist[playerid][mod9]=componentid; }
		  case 10: { Carlist[playerid][mod10]=componentid; }
		  case 11: { Carlist[playerid][mod11]=componentid; }
		  case 12: { Carlist[playerid][mod12]=componentid; }
		  case 13: { Carlist[playerid][mod13]=componentid; }
		  case 14: { Carlist[playerid][mod14]=componentid; }
		  case 15: { Carlist[playerid][mod15]=componentid; }
		  case 16: { Carlist[playerid][mod16]=componentid; }
		  case 17: { Carlist[playerid][mod17]=componentid; }
		  default: { new string[128]; format(string,128,"Unknown component id: %i",componentid); print(string); }
		}
	}
	return 1;
}

public OnVehiclePaintjob(playerid,vehicleid, paintjobid)
{
	if (playerid!=GetPlayerFromCarlistCar(vehicleid)) {return 1;}
	if(playerid!=-1)
	{
	  Carlist[playerid][Paintjob]=paintjobid;
	}
	return 1;
}

public OnVehicleRespray(playerid,vehicleid, color1, color2)
{
	if (playerid!=GetPlayerFromCarlistCar(vehicleid)) {return 1;}
	if(playerid!=-1)
	{
	  Carlist[playerid][Color1]=color1;
	  Carlist[playerid][Color2]=color2;
	}
	return 1;
}
Quote:

C:\DOCUME~1\17FE8~1.MRK\SKRIVB~1\serv\pawno\CnR.pw n(3261) : error 025: function heading differs from prototype
C:\DOCUME~1\17FE8~1.MRK\SKRIVB~1\serv\pawno\CnR.pw n(3292) : error 025: function heading differs from prototype
C:\DOCUME~1\17FE8~1.MRK\SKRIVB~1\serv\pawno\CnR.pw n(3302) : error 025: function heading differs from prototype

Need some help.
Reply


Messages In This Thread
Functions heading ... - by SuperS0nic - 29.01.2009, 13:58
Re: Functions heading ... - by Nero_3D - 29.01.2009, 14:26
Re: Functions heading ... - by Mikep - 29.01.2009, 17:57
Re: Functions heading ... - by SuperS0nic - 04.02.2009, 12:56
Re: Functions heading ... - by maij - 04.02.2009, 14:13
Re: Functions heading ... - by Finn - 04.02.2009, 14:17

Forum Jump:


Users browsing this thread: 4 Guest(s)