RandomEx Floats
#1

I'm trying to use randomEx to get a number between two floats(X and Y coordinates). These floats are stored in a huge array.
Ex.
X = randomEx(SAZones[rand][1], SAZones[rand][4]);
Y = randomEx(SAZones[rand][2], SAZones[rand][5]);

I'm getting a tag mismatch error and I know that the floats have to be integers because randomEx only accepts integers. Does anyone know how to do this?
Reply
#2

look at this
Quote:
Originally Posted by [nl]daplayer
Посмотреть сообщение
pawn Код:
new Float:x = 1.0 + random(10);
new Float:y = 2.0 + random(11);
new Float:z = 4.0;
It's just an example, so it's not useable :P
Reply
#3

Yea, but I want to use randomEx. Not random.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)