Quote:
Originally Posted by SyS
Remove this part from the include
PHP код:
public GetVehicleZAngle(vehicleid) //By Sacky
{
new Float:x;
new Float:y;
new Float:z;
if(IsVehicleInUse(vehicleid)){
new vdid = VehicleDriverID(vehicleid);
GetPlayerPos(vdid,x,y,z);
new Float:cx = SavePlayerPos[vdid][LastX];
new Float:cy = y;
new adj = GetPointDistanceToPoint(SavePlayerPos[vdid][LastX],SavePlayerPos[vdid][LastY],cx,cy);
new opp = GetPointDistanceToPoint(x,y,cx,cy);
new Float:rad = itan(opp,adj);
new ang = RadiansToDegrees(rad);
return ang;
}
}
its already defined in a_samp
Note: By reading the code this include is really outdated and i won't recommend you to use it...
|
This ^ when native function get redefined in the code the compiler crashes (a_samp and then in uf) so removing that can fix your crash as SyS said..
Also me neither recommends that outdated include