Delete all objects..
#1

Hi, How do I delete all at once ? Thanks..
PHP код:
VehModelObject[0] = CreateObject(188090.101402.54382, -1.32190,   0.00000, -90.0000090.00000);
VehModelObject[1] = CreateObject(188090.101807.44782, -4.32190,   0.00000, -90.0000090.00000);
VehModelObject[2] = CreateObject(188090.101704.84382, -3.32190,   0.00000, -90.0000090.00000);
etc
Reply
#2

What u mean delete them? delete the code ?
Reply
#3

Quote:
Originally Posted by Joron
Посмотреть сообщение
What u mean delete them? delete the code ?
DestroyObject and at one time all object VehModelObject[0]... [30] how can I do ? Sorry English.
Reply
#4

Just backspace and delete them?
Reply
#5

Quote:
Originally Posted by Joron
Посмотреть сообщение
Just backspace and delete them?
Not stable.

Did you deleted with a single function?
Reply
#6

A simple for-loop should do it just fine:
PHP код:
for (new isizeof(VehModelObject); i++)
{
    
DestroyObject(VehModelObject[i]);
    
VehModelObject[i] = 0// Don't forget to NULL the array, otherwise you could get weird results if you did it again after creating new objects

Reply
#7

Quote:
Originally Posted by AmigaBlizzard
Посмотреть сообщение
A simple for-loop should do it just fine:
PHP код:
for (new isizeof(VehModelObject); i++)
{
    
DestroyObject(VehModelObject[i]);
    
VehModelObject[i] = 0// Don't forget to NULL the array, otherwise you could get weird results if you did it again after creating new objects

Thanks..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)