15.08.2010, 21:45
(
Последний раз редактировалось DaneAMattie; 15.08.2010 в 22:02.
)
Hello,
I want a loop that creates 50 objects and moves them all to a certain location so i tried:
new Object[50];
new Float:ACX;
new Float:ACY;
new Float:ACZ;
new Float:PACX;
new Float:PACY;
new Float:PACZ;
for(new ObjID = 0; ObjID < 50; ObjID++)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(gTeam[lalaid] == TEAM_ARMY)
{
if(gTeam[i] == TEAM_ARMY)
{
GetVehiclePos(VehicleNPC1,ACX,ACY,ACZ);
Object[ObjID] = CreateObject(354,ACX,ACY,ACZ,0,0,0);
GetPlayerPos(1,PACX,PACY,PACZ);
MoveObject(Object[ObjID],PACX,PACY,PACZ,59);
}
}
}
}
}
but the objects just seems to not move :S
I want a loop that creates 50 objects and moves them all to a certain location so i tried:
new Object[50];
new Float:ACX;
new Float:ACY;
new Float:ACZ;
new Float:PACX;
new Float:PACY;
new Float:PACZ;
for(new ObjID = 0; ObjID < 50; ObjID++)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(gTeam[lalaid] == TEAM_ARMY)
{
if(gTeam[i] == TEAM_ARMY)
{
GetVehiclePos(VehicleNPC1,ACX,ACY,ACZ);
Object[ObjID] = CreateObject(354,ACX,ACY,ACZ,0,0,0);
GetPlayerPos(1,PACX,PACY,PACZ);
MoveObject(Object[ObjID],PACX,PACY,PACZ,59);
}
}
}
}
}
but the objects just seems to not move :S