[Error] Scripting Error.
#1

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.
Reply
#2

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;
}
Reply
#3

i dont have
pawn Код:
forward FunctionName(Float:x)

public FunctionName(Float:x, string[])
{
  // code.
  return 1;
}
in my tAxI.pwn
Reply
#4

Use your head: that was just an example.

Check my post again to see what kind of mistake you have made.
Reply
#5

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...
Reply
#6

Quote:
Originally Posted by blank.me
eeem thats not my script
I know it's not.. i gave you only an example.
Reply
#7

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)