26.11.2014, 15:49
SOLUCIONADO, CREO. ![Tongue](images/smilies/razz.gif)
![Tongue](images/smilies/razz.gif)
Код:
new indexTXD[50], ContarIndex, IndexUsado[MAX_PLAYERS] ; // asigno el index para el SetObjectMaterial indexTXD[ContarIndex] = 15; IndexUsado[playerid] = ContarIndex; ContarIndex++; //sumo un array for(new index=0; index < ContarIndex; index++) { for(new idx=0; idx < sizeof(indexTXD); idx++) { if( idx == indexTXD[index] ) { printf( " SetObjectMaterial(objeto, %d, -1, \"none\", \"none\", -1); " , idx); /* RESULTADO: SetObjectMaterial(objeto, 15, -1, \"none\", \"none\", -1); SetObjectMaterial(objeto, 46, -1, \"none\", \"none\", -1); SetObjectMaterial(objeto, 2, -1, \"none\", \"none\", -1); SetObjectMaterial(objeto, 6, -1, \"none\", \"none\", -1); */ } } } // asigno el index para el SetObjectMaterial al array nuevamente new array = IndexUsado[playerid]; indexTXD[array] = 15;