Streamer objects not destroying
#1

Hi guys, i have problem like this: i have a loop witch is repeating 10 times, and its spawning objects at 10 different positions, here is code:
Код:
FarmerInfo[ playerid ][ FarmerObjekat ][ ii ] = CreateDynamicObject( 1453, objekat1[ 0 ] += ( 2 * floatsin(-angle + 180, degrees )), objekat1[ 1 ] += (2*floatcos(-angle+180,degrees)), objekat1[ 2 ] += 0.6, 0.0, 90.0, angle );
and in another loop i have a code like this, its loop again and its destroying 10 objects:
Код:
DestroyDynamicObject( FarmerInfo[ playerid ][ FarmerObjekat ][ i ] );
and lets say 2-3 players are doing this job, and sometimes objects wont destroy, we can still see them afther DestroyDynamicObject

loop is not repeating so there is no way it can create 2 objects, i debugged that code, and loop go create 10objects and stop its okay with that...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)