Help!!
#5

pawn Код:
stock InitEntrances()
{
    new FileName[128];
    for(new i = 0; i < MAX_ENTRANCES; i++)
    {
        format(FileName, sizeof(FileName), "Entrances/Entrance_%d.ini", i);
        if(fexist(FileName))
        {
            Entrances[i][tEntranceX] = dini_Float(FileName, "EntranceX");
            Entrances[i][tEntranceY] = dini_Float(FileName, "EntranceY");
            Entrances[i][tEntranceZ] = dini_Float(FileName, "EntranceZ");
            Entrances[i][tExitX] = dini_Float(FileName, "ExitX");
            Entrances[i][tExitY] = dini_Float(FileName, "ExitY");
            Entrances[i][tExitZ] = dini_Float(FileName, "ExitZ");
            Entrances[i][tEntranceInt] = dini_Int(FileName, "EntranceInt");
            Entrances[i][tExitInt] = dini_Int(FileName, "ExitInt");

            Entrances[i][tFaction] = dini_Int(FileName, "Faction");
            Entrances[i][tPickupID] = dini_Int(FileName, "PickupID");

            Entrances[i][tPickupID] = CreatePickup(1239, 23, Entrances[i][tEntranceX], Entrances[i][tEntranceY], Entrances[i][tEntranceZ]);
            printf("[system] Entrance %d spawned.", i);
            SpawnedEntrances++;
       }
    }
    return 1;
}
Reply


Messages In This Thread
Help!! - by NewYorkRP - 12.12.2010, 10:59
Re: Help!! - by NewYorkRP - 12.12.2010, 11:03
Re: Help!! - by Marcel - 12.12.2010, 11:04
Re: Help!! - by Jochemd - 12.12.2010, 11:05
Re: Help!! - by NewYorkRP - 12.12.2010, 11:07
Re: Help!! - by NewYorkRP - 12.12.2010, 11:09
Re: Help!! - by Marcel - 12.12.2010, 11:11
Re: Help!! - by NewYorkRP - 12.12.2010, 11:13
Re: Help!! - by Marcel - 12.12.2010, 11:16
Re: Help!! - by NewYorkRP - 12.12.2010, 11:19

Forum Jump:


Users browsing this thread: 1 Guest(s)