uf.inc - 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)
+--- Thread: uf.inc (
/showthread.php?tid=647373)
uf.inc -
Osamakurdi - 04.01.2018
Where I can find this include i've searched everywhere but i found nothing ..
please if you have just upload it for me , thanks.
Re: uf.inc -
RogueDrifter - 04.01.2018
beep.
Re: uf.inc -
Osamakurdi - 04.01.2018
Quote:
Originally Posted by RogueDrifter
beep.
|
My Complier crash why?
Re: uf.inc -
RogueDrifter - 04.01.2018
Quote:
Originally Posted by Osamakurdi
My Complier crash why?
|
Idk i found that somewhere its pretty old

give me 5 minutes i will take a look at it and fix it for you.
Re: uf.inc -
Osamakurdi - 04.01.2018
Quote:
Originally Posted by RogueDrifter
Idk i found that somewhere its pretty old  give me 5 minutes i will take a look at it and fix it for you.
|
Thanks
Re: uf.inc -
SyS - 04.01.2018
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...
Re: uf.inc -
RogueDrifter - 04.01.2018
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
|
There's more than that, that file i mentioned is fucked up and UF.INC is nowhere to be found.
Re: uf.inc -
Marshall32 - 06.01.2018
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
Re: uf.inc -
RogueDrifter - 06.01.2018
Quote:
Originally Posted by Marshall32
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 
|
It won't! the uf.inc file i mentioned is really messed up and has much much more errors beyond the redefenition of getvehiclezangle i already tried, the solution is to ether look for another uf.inc or simply dumb it.
Re: uf.inc -
Marshall32 - 06.01.2018
Quote:
Originally Posted by RogueDrifter
It won't! the uf.inc file i mentioned is really messed up and has much much more errors beyond the redefenition of getvehiclezangle i already tried, the solution is to ether look for another uf.inc or simply dumb it.
|
it does fixes crash dude...i just tried it myself.. Not talking about errors and warning but crash..