Vehicle Looping
#1

What is the best way to loop through all the vehicles spawned in a server and detect their positions?
Reply
#2

pawn Код:
new Float:x, Float:y, Float:z;
for (new i; i < 2000; i++)
     GetVehiclePos(i,x,y,z);
Reply
#3

This: ?

pawn Код:
new VehPosX[Max_Vehicles];
new VehPosY[Max_Vehicles];
new VehPosZ[Max_Vehicles];

for(new i = 0;i < MAX_VEHICLES;i++)
{
    GetVehiclePos(i,VehPosX[i],VehPosY[i],VehPosZ[i]);
    //VehPosX[0] = PosX for Vehicleid 0
}
Reply
#4

Quote:
Originally Posted by SomebodyAndMe
Посмотреть сообщение
pawn Код:
new Float:x, Float:y, Float:z;
for (new i; i < 2000; i++)
     GetVehiclePos(i,x,y,z);
Thank you sir
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)