Problem With OnGameModeInit
#8

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...
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)