function heading differs from prototype (but it doesn't?) - 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: function heading differs from prototype (but it doesn't?) (
/showthread.php?tid=271626)
function heading differs from prototype (but it doesn't?) -
Jack_Leslie - 25.07.2011
pawn Код:
forward OnVehicleMod(vehicleid,componentid);
public OnVehicleMod(vehicleid,componentid)
{
SaveComponent(vehicleid, componentid);
return 1;
}
I cant see where it differs, can you?
Re: function heading differs from prototype (but it doesn't?) -
iPLEOMAX - 25.07.2011
pawn Код:
public OnVehicleMod(playerid, vehicleid, componentid)
{ return true; }
You missed "playerid" also, no need to forward. The function is integrated.