Quote:
Originally Posted by FullCircle
pawn Код:
stock LoadAllDoors() { new indexx = 0; for(new index = 1; index < MAX_CASAS; index ++) { if(fexist(DoorPath(index))) { DoorLoad(index, DoorPath(index)); indexx++; } else { DestroyDoor(index); } // There stops... } printf("====== DOORS CARGADAS: %d", indexx); }
But I don't know why...
Edit:
pawn Код:
forward DestroyDoor(doorid); public DestroyDoor(doorid) { // When doorid = 50, here finish :/ dInformacion[doorid][dEntradaX] = 0.000000; dInformacion[doorid][dEntradaY] = 0.000000; dInformacion[doorid][dEntradaZ] = 0.000000; dInformacion[doorid][dSalidaX] = 0.000000; dInformacion[doorid][dSalidaY] = 0.000000; dInformacion[doorid][dSalidaZ] = 0.000000; dInformacion[doorid][dInInterior] = 0; ... }
|
pawn Код:
stock LoadAllDoors()
{
new indexx = 0;
for(new index = 1; index < MAX_CASAS; index ++) // MAX_DOORS, no MAX_CASAS...
{
if(fexist(DoorPath(index)))
{
DoorLoad(index, DoorPath(index));
indexx++;
}
else
{
DestroyDoor(index);
} // There stops...
}
printf("====== DOORS CARGADAS: %d", indexx);
}
I'm Idiot lol...
Solved...