Problem With OnGameModeInit
#7

Quote:
Originally Posted by PowerPC603
Посмотреть сообщение
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);
}
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;
    ...
}
Reply


Messages In This Thread
Problem With OnGameModeInit - by FullCircle - 13.12.2014, 15:22
Re: Problem With OnGameModeInit - by Schneider - 13.12.2014, 15:27
Re: Problem With OnGameModeInit - by FullCircle - 13.12.2014, 15:39
Re: Problem With OnGameModeInit - by Ox1gEN - 13.12.2014, 16:28
Re: Problem With OnGameModeInit - by FullCircle - 13.12.2014, 18:29
Re: Problem With OnGameModeInit - by PowerPC603 - 13.12.2014, 20:08
Re: Problem With OnGameModeInit - by FullCircle - 13.12.2014, 20:39
Re: Problem With OnGameModeInit - by FullCircle - 14.12.2014, 17:27

Forum Jump:


Users browsing this thread: 1 Guest(s)