03.09.2013, 17:20
You must define the objects in order to delete them, so you can do something like this
pawn Код:
new Objects[50]; //The 50 stands for amount of objects you are going to define so you can change this.
Objects[1] = CreateObject(blabla..
Objects[2] = CreateObject(blabla..
//And so on
//Now loop through the objects
for(new x; x < 50; x++)
{
DestroyObject(Objects[x]);
return 1;
}