Help!!
#6

And here is my saving function:

pawn Код:
stock SaveEntrance(i)
{
    new FileName[128];
    format(FileName, sizeof(FileName), "Entrances/Entrance_%d.ini", i);
    if(fexist(FileName))
    {
        dini_FloatSet(FileName, "EntranceX", Entrances[i][tEntranceX]);
        dini_FloatSet(FileName, "EntranceY", Entrances[i][tEntranceY]);
        dini_FloatSet(FileName, "EntranceZ", Entrances[i][tEntranceZ]);
        dini_FloatSet(FileName, "ExitX", Entrances[i][tExitX]);
        dini_FloatSet(FileName, "ExitY", Entrances[i][tExitY]);
        dini_FloatSet(FileName, "ExitZ", Entrances[i][tExitZ]);
        dini_IntSet(FileName, "EntranceInt", Entrances[i][tEntranceInt]);
        dini_IntSet(FileName, "ExitInt", Entrances[i][tExitInt]);
       
        dini_IntSet(FileName, "Faction", Entrances[i][tFaction]);
        dini_IntSet(FileName, "PickupID", Entrances[i][tPickupID]);
        printf("[system] Business %d saved.", i);
    }
    else
    {
        printf("[system] Failed to save business %d.", i);
    }
    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)