ERROR in a filterscript.
#1

Whenever I compile, I get this; "error 025: function heading differs from prototype.

This is where it messes up...

public OnVehicleRespray(vehicleid, color1, color2)
{
for(new i = 0; i < sizeof(CarInfo); i++)
{
if(vehicleid == CarInfo[i][ownedvehicle])


I'm not sure what to do. I've used the search button, but everyone has a different way of fixing it.
Reply
#2

pawn Код:
public OnVehicleRespray(playerid,vehicleid, color1, color2)
{
  for(new i = 0; i < sizeof(CarInfo); i++)
  {
    if(vehicleid == CarInfo[ownedvehicle])
Try that. And the reason is because in a_samp.inc, it says
pawn Код:
forward OnVehicleRespray(playerid,vehicleid, color1, color2)
and you were just missing the playerid part. Which the error is basically saying that the forward is different then the function.
Reply
#3

It compiled properly. Kudos.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)