[HELP]Vehicle Streamer
#1

Hey guys,
I wanted to use the vehicle streamer and I added some functions.
I've got three errors now.
pawn Код:
C:\Programme\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\Simpsons.pwn(821) : error 025: function heading differs from prototype
C:\Programme\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\Simpsons.pwn(827) : error 025: function heading differs from prototype
C:\Programme\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\Simpsons.pwn(833) : error 025: function heading differs from prototype
pawn Код:
public OnVehicleMod(playerid,vehicleid,componentid)//821
{
  tAxI_OnVehicleMod(vehicleid,componentid);
  return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)//827
{
  tAxI_OnVehicleRespray(vehicleid,color1,color2);
  return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)//833
{
    tAxI_OnVehiclePaintjob(vehicleid,paintjobid);
  return 1;
}
Can you help me please?
Reply
#2

look at the wiki for normal public functions, i had these errors too, but when I changed the publics it worked fine.
Reply
#3

I exactly coppied the callbacks out of wiki.
https://sampwiki.blast.hk/wiki/OnVehicleMod
https://sampwiki.blast.hk/wiki/OnVehicleRespray
https://sampwiki.blast.hk/wiki/OnVehiclePaintjob
Reply
#4

I don't know then.. sorry. :P
Reply
#5

No problem, but what is it up to?
Is it up to the returns?
Reply
#6

I solved the problem.
I just excluded the parameter "playerid".

But why does it works without "playerid"?
Reply
#7

I don't know, maybie vehicle callbacks doesn't return playerid? :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)