HOW TO GET FACING ANGLE?
#5

Quote:
Originally Posted by buonggiorno
i see that but this numbers make me confused.

272.3543 that is face angle but i dont know how to get decimals ?
pawn Code:
stock floatval(Float:var)
{
    new str[32];
    format(str, sizeof(str), "%f", var);
    return strval(str);
}
And then you can do smth like this:
pawn Code:
new Float:bla = 465.84562;
format(string,128,"Float %f in decimals is %d",bla,floatval(bla));
You get "Float 465.84562 in decimals is 465".

Reply


Messages In This Thread
HOW TO GET FACING ANGLE? - by buonggiorno - 01.12.2009, 14:16
Re: HOW TO GET FACING ANGLE? - by Correlli - 01.12.2009, 14:17
Re: HOW TO GET FACING ANGLE? - by buonggiorno - 01.12.2009, 14:27
Re: HOW TO GET FACING ANGLE? - by Mechscape - 01.12.2009, 14:36
Re: HOW TO GET FACING ANGLE? - by Dreftas - 01.12.2009, 14:52
Re: HOW TO GET FACING ANGLE? - by buonggiorno - 01.12.2009, 14:54
Re: HOW TO GET FACING ANGLE? - by Correlli - 01.12.2009, 15:02
Re: HOW TO GET FACING ANGLE? - by Dreftas - 01.12.2009, 15:08
Re: HOW TO GET FACING ANGLE? - by Correlli - 01.12.2009, 15:14

Forum Jump:


Users browsing this thread: 2 Guest(s)