Now I have this error and Warning
#1

Now I have this error and Warning

Код:
C:\Users\Rainer\Desktop\samp03asvr_win32\gamemodes\RL.pwn(3065) : error 025: function heading differs from prototype
C:\Users\Rainer\Desktop\samp03asvr_win32\gamemodes\RL.pwn(4547) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
3065 - 3076
Код:
public OnVehicleRespray(vehicleid, color1, color2)
{
  if(CarInfo[vehicleid][cTuned] == 1)
  {
    ChangeVehiclePaintjob(vehicleid, CarInfo[vehicleid][cColor3]);
  }
  else
  {
    ChangeVehicleColor(vehicleid, CarInfo[vehicleid][cColor1], CarInfo[vehicleid][cColor2]);
  }
  return 1;
}
4547 - 4550 Delete function
Код:
public OnPlayerPrivmsg(playerid, recieverid, text[])
{
  return 0;
}
Reply
#2

Quote:
Originally Posted by Rainer
4547 - 4550
Код:
public OnPlayerPrivmsg(playerid, recieverid, text[])
{
  return 0;
}
You need to disable this, this is no longer a 0.3 function.
Reply
#3

Thanks, I have disable the function.
Now I've only got the error at line 3065
Reply
#4

OnVehicleRespray should look like this:

pawn Код:
public OnVehicleRespray(playerid, vehicleid, color1, color2)
Reply
#5

Quote:
Originally Posted by dugi
OnVehicleRespray should look like this:

pawn Код:
public OnVehicleRespray(playerid, vehicleid, color1, color2)
Thank you very much. Topic can be closed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)