[HELP]Vehicle Streamer - 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: [HELP]Vehicle Streamer (
/showthread.php?tid=84232)
[HELP]Vehicle Streamer -
Marc_307 - 29.06.2009
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?
Re: [HELP]Vehicle Streamer -
AiVAMAN - 29.06.2009
look at the wiki for normal public functions, i had these errors too, but when I changed the publics it worked fine.
Re: [HELP]Vehicle Streamer -
Marc_307 - 29.06.2009
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
Re: [HELP]Vehicle Streamer -
AiVAMAN - 29.06.2009
I don't know then.. sorry. :P
Re: [HELP]Vehicle Streamer -
Marc_307 - 29.06.2009
No problem, but what is it up to?
Is it up to the returns?
Re: [HELP]Vehicle Streamer -
Marc_307 - 29.06.2009
I solved the problem.
I just excluded the parameter "playerid".
But why does it works without "playerid"?
Re: [HELP]Vehicle Streamer -
AiVAMAN - 30.06.2009
I don't know, maybie vehicle callbacks doesn't return playerid? :P