returning float in callremotefunction
#4

Quote:

causing it to spawn me at a wrong position

I doubt that, since the returned values only differ 0.0001m max. If you must round them off you can use format() with the %.04f specifier.

pawn Код:
new Float:exact = 1.1266666666;
new rounded[32];
format(rounded, sizeof(rounded), "%.04f", exact);

// rounded = 1.1267
Reply


Messages In This Thread
returning float in callremotefunction - by .Mento - 20.06.2013, 16:15
Re: returning float in callremotefunction - by Scenario - 20.06.2013, 16:44
Re: returning float in callremotefunction - by Vince - 20.06.2013, 17:50
Re: returning float in callremotefunction - by Sinner - 20.06.2013, 17:53

Forum Jump:


Users browsing this thread: 1 Guest(s)