19.11.2010, 21:54
like how do i make this return
metres.milimetres
and kilometers. meters
and if kilometers = more than one use the second format( kilometers.metres) and if its less than 1 = 0 do the first format
metres.milimetres
and kilometers. meters
and if kilometers = more than one use the second format( kilometers.metres) and if its less than 1 = 0 do the first format
pawn Код:
stock Float:GetPlayerDistanceToPoint(playerid, Float:x, Float:y, Float:z)
{
new Float:pX, Float:pY, Float:pZ;
GetPlayerPos(playerid, pX, pY, pZ);
pX -= x, pY -= y, pZ -= z;
return floatsqroot( (pX * pX) + (pY * pY) + (pZ * pZ) );
}