13.12.2014, 20:39
(
Последний раз редактировалось FullCircle; 13.12.2014 в 23:03.
)
Quote:
Place printf statements everywhere in the code, you should be able to figure out where and why it stops working.
After each line of code, just print something to the server console. When it suddenly stops printing, you've found the issue. |
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);
}
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;
...
}