Random Selecting Numbers
#1

I got these numbers.

pawn Код:
new VehicleIDs[] =
{
400,401,405,410,411,412,413,
419,421,426,429,434,439,445,
458,459,468,474,475,477,478,
482,489,492,496,500,505,507,
517,526,535,542,545,546,549,
550,555,561,566,575,576,579,
};
And what I want to do is randomly select one of THOSE numbers above.

Reguards.
Reply
#2

i use this:
pawn Код:
AddStaticVehicle(VehileIDs[random(sizeof(VehileIDs))],x,y,z,a,c1,c2);
Reply
#3

Thanks alot
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)