values in new float doesn't get the info
#2

Arrays can only be declared with constant values
But why don't you use 2d arrays for PosX, PosY, ... instead of PosX, PosX1, PosX2?

With 2d arrays you could do
PHP код:
GetRandomPos(playeridFloatXFloatYFloatZFloatA) {
    new
        
rand random(sizeof PosX)
    ;
    
PosX[rand][playerid];
    
PosY[rand][playerid];
    
PosZ[rand][playerid];
    
Angle[rand][playerid];

Reply


Messages In This Thread
values in new float doesn't get the info - by JohnBlaze1971 - 03.04.2016, 08:07
Re: values in new float doesn't get the info - by Nero_3D - 03.04.2016, 09:00

Forum Jump:


Users browsing this thread: 2 Guest(s)