[Error] Scripting Error. - 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: [Error] Scripting Error. (
/showthread.php?tid=92340)
[Error] Scripting Error. -
aleksandra - 19.08.2009
D:\Samp server\Samp server\pawno\tAxIFR.pwn(2913) : error 025: function heading differs from prototype
D:\Samp server\Samp server\pawno\tAxIFR.pwn(2919) : error 025: function heading differs from prototype
D:\Samp server\Samp server\pawno\tAxIFR.pwn(2925) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Errors.
I got this error first time...
I just dont understand it hehe
Thank you very much.
Have a nice day.
Re: [Error] Scripting Error. -
Correlli - 19.08.2009
Here's an example:
pawn Код:
forward FunctionName(Float:x)
public FunctionName(Float:x, string[])
{
// code.
return 1;
}
this is wrong, it should be like this:
pawn Код:
forward FunctionName(Float:x, string[])
public FunctionName(Float:x, string[])
{
// code.
return 1;
}
Re: [Error] Scripting Error. -
aleksandra - 19.08.2009
i dont have
pawn Код:
forward FunctionName(Float:x)
public FunctionName(Float:x, string[])
{
// code.
return 1;
}
in my tAxI.pwn
Re: [Error] Scripting Error. -
Correlli - 19.08.2009
Use your head: that was just an example.
Check my post again to see what kind of mistake you have made.
Re: [Error] Scripting Error. -
aleksandra - 19.08.2009
eeem thats not my script , i just compiled Taxi RPG/FREEROAM
http://forum.sa-mp.com/index.php?topic=28927.0
and i get that...
Re: [Error] Scripting Error. -
Correlli - 19.08.2009
Quote:
Originally Posted by blank.me
eeem thats not my script
|
I know it's not.. i gave you only an
example.
Re: [Error] Scripting Error. -
dafel2 - 19.08.2009
OMG, use search button. It answers all your questions.
Quote:
Originally Posted by N1ck3
Quote:
Originally Posted by Soniks
I have 3 errors
Код:
C:\Documents and Settings\Windows\Desktop\newgta\gamemodes\source\tAxIFR.pwn(2652) : error 025: function heading differs from prototype
C:\Documents and Settings\Windows\Desktop\newgta\gamemodes\source\tAxIFR.pwn(2658) : error 025: function heading differs from prototype
C:\Documents and Settings\Windows\Desktop\newgta\gamemodes\source\tAxIFR.pwn(2664) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Errors.
In this code
Код:
public OnVehicleMod(vehicleid,componentid)
{
SaveComponent(vehicleid,componentid);
return 1;
}
public OnVehiclePaintjob(vehicleid,paintjobid)
{
SavePaintjob(vehicleid,paintjobid);
return 1;
}
public OnVehicleRespray(vehicleid,color1,color2)
{
SaveColors(vehicleid,color1,color2);
return 1;
}
|
If you want to fix the error replace the on under eith this
Код:
public OnVehicleMod(playerid,vehicleid,componentid)
{
SaveComponent(vehicleid,componentid);
return 1;
}
public OnVehiclePaintjob(playerid,vehicleid,paintjobid)
{
SavePaintjob(vehicleid,paintjobid);
return 1;
}
public OnVehicleRespray(playerid,vehicleid,color1,color2)
{
SaveColors(vehicleid,color1,color2);
return 1;
}
it fixed my error 
|