CreateObject(3626,1218.00000000,-1640.50000000,12.39999962,0.00000000,0.00000000,0.00000000);
CreateObject(2934,1263.59997559,-1543.80004883,62.29999924,0.00000000,0.00000000,0.00000000);
CreateObject(2932,1265.80004883,-1541.80004883,65.19999695,0.00000000,0.00000000,90.00000000);
new meuobjeto;
//
meuobjeto = CreateObject(...);
// destroir:
DestroyObject(meuobjeto);
pawn Code:
|
Йh eu sei, mas queria fazer isso com todos, o meu mapa sгo 300 objetos... fazer 300 variaiveis?
|
new Objeto[300];
Objeto[0] = Create...
Objeto[1] = Create...
DestroyObject(Objeto[0]);
pawn Code:
|
new Objeto[300];
Objeto[0] = Create...
Objeto[1] = Create...
DestroyObject(Objeto[0] && Objeto[1]);
new First, Second;
First = CreateObject(...); // PRIMEIRO OBJETO
Second = CreateObject(...); // Ultimo Objeto
// Destruir:
for(new i = First; i ! Second; ++i){
DestroyObject(i);
}