09.07.2012, 11:45
Quote:
Thanks! <3
Edit: I'm using this code: pawn Код:
|
pawn Код:
stock Float: randomFloat(Float: fMin, Float: fMax, iDig) {
iDig = _: floatpower(10.0, iDig);
fMin = Float: (floatround(fMin * Float: iDig));
fMax = Float: (floatround(fMax * Float: iDig));
return (random((_: fMax - _: fMin)) + _: fMin) / Float: iDig;
}
pawn Код:
CreateExplosion(randomFloat(-341.5977, -135.6987, 3), randomFloat(2589.1521, 2796.9480, 3), 61.8585, 2, 50);