error 025: function heading differs from prototype -
vincee - 05.01.2012
Idk why....
error code
Код:
error 025: function heading differs from prototype
script :
pawn Код:
public OnVehicleDamageStatusUpdate(vehicleid, playerid)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new Float:vehhealth;
GetVehicleHealth(vehicleid, vehhealth);
if(vehhealth < 400)
{
TogglePlayerControllable(playerid, 0);
Engine[vehicleid] = 0;
FreezeVehicle(vehicleid, 1);
SendClientMessage(playerid, COLOR_RED, "(ONSTAR) This car is totalled!");
}
}
}
Re: error 025: function heading differs from prototype -
Basssiiie - 05.01.2012
Seems to work fine for me.
Re: error 025: function heading differs from prototype -
gamer931215 - 05.01.2012
Your code is compiling at my computer without any errors at all (with my own FreezeVehicle function),
Can you give us more information, like at which line this error occurs (and which code is at that line) ?
The error itself basicly means that you are trying to use invalid parameters on a function,
Example:
GOOD:
pawn Код:
public OnPlayerConnect(playerid)
{
return 1;
}
WRONG:
pawn Код:
public OnPlayerConnect(playerid,param2much) //different parameters!!
{
return 1;
}
pawn Код:
public OnPlayerConnect(vehicleid) //wrong parameter!!
{
return 1;
}
Re: error 025: function heading differs from prototype -
vincee - 05.01.2012
(2371) : error 025: function heading differs from prototype
line 2371 :
pawn Код:
public OnVehicleDamageStatusUpdate(vehicleid, playerid)
I have it placed under OnDialogResponse
It must of already been defined.
I done
pawn Код:
forward DamageCheck(vehicleid, playerid);
public DamageCheck(vehicleid, playerid)
and it compiled fine
Re: error 025: function heading differs from prototype -
vincee - 05.01.2012
Now the script aint even working, I smashed my car untill it blew up
Re: error 025: function heading differs from prototype -
iTorran - 05.01.2012
It wont work if you change it.
https://sampwiki.blast.hk/wiki/OnVehicleDamageStatusUpdate
Re: error 025: function heading differs from prototype -
vincee - 06.01.2012
well I don't know what the problem is, maybe its defined in a include?
Re: error 025: function heading differs from prototype -
Support - 25.03.2015
This topic seems old.But for the people who wants to know the fix, Its easy just compile it with a another pawno.exe program.
Re: error 025: function heading differs from prototype -
X337 - 25.03.2015
LOL it's 3 years ago captain