Moveobject trough a loop
#1

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
Reply


Messages In This Thread
Moveobject trough a loop - by DaneAMattie - 15.08.2010, 21:45
Re: Moveobject trough a loop - by Redgie - 15.08.2010, 21:52
Re: Moveobject trough a loop - by DaneAMattie - 15.08.2010, 21:57
Re: Moveobject trough a loop - by Redgie - 15.08.2010, 21:58
Re: Moveobject trough a loop - by DaneAMattie - 15.08.2010, 22:00
Re: Moveobject trough a loop - by DaneAMattie - 15.08.2010, 22:05
Re: Moveobject trough a loop - by Redgie - 15.08.2010, 22:07
Re: Moveobject trough a loop - by DaneAMattie - 15.08.2010, 22:10
Re: Moveobject trough a loop - by Tr1viUm - 15.08.2010, 22:23
Re: Moveobject trough a loop - by DaneAMattie - 15.08.2010, 22:24

Forum Jump:


Users browsing this thread: 3 Guest(s)