02.02.2015, 13:58
Since a few weeks ago I got a crash debug which I can't solve (without removing that part of code from that callback):
and in an include (vehfuncs.inc) I have:
This is what is printed:
I don't know why it is showing the mSelection include, it isn't even having that callback (OnUnoccupiedVehicleUpdate) in it.
My script is having over 66.000 lines and I am using the default compiler (it is having this problem even with the compiler patches).
pawn Код:
public OnUnoccupiedVehicleUpdate( vehicleid, playerid, passenger_seat, Float:new_x, Float:new_y, Float:new_z, Float:vel_x, Float:vel_y, Float:vel_z )
{
print( "OnUnoccupiedVehicleUpdate - 1" ); // this is called
if( !GetVehicleRespawnDelay( vehicleid ) ) // this line is crashing, even if I remove the checking, leaving only the function, without returning anything
return 1;
print( "OnUnoccupiedVehicleUpdate - 2" ); // this is not called
// etc.
return 1;
}
pawn Код:
#if !defined GetVehicleRespawnDelay
stock GetVehicleRespawnDelay( vehicleid )
{
print( "RespawnDelay - 1" ); // This is not called at all
if( !IsValidVehicle( vehicleid ) )
return 0;
return GetGVarInt( "VehicleRespawnDelay", vehicleid );
}
#endif
pawn Код:
[02/02/2015 16:29:04] OnUnoccupiedVehicleUpdate - 1
[02/02/2015 16:29:04] [debug] Run time error 6: "Invalid instruction"
[02/02/2015 16:29:04] [debug] Unknown opcode 0xfffffffc at address 0x0001265C
[02/02/2015 16:29:04] [debug] AMX backtrace:
[02/02/2015 16:29:04] [debug] #0 0001265c in public OnUnoccupiedVehicleUpdate (vehicleid=857, playerid=0, passenger_seat=0, Float:new_x=980.89001, Float:new_y=1741.81006, Float:new_z=8.92888, Float:vel_x=0.00000, Float:vel_y=0.00000, Float:vel_z=-0.04079) at mSelection.inc:157
My script is having over 66.000 lines and I am using the default compiler (it is having this problem even with the compiler patches).