Y_Ini tag
#3

File names are set like House1.ini, House2.ini and so on, since i have looped through MAX_HOUSES from 1 while saving them.

And i am not saying houses aren't loading, they load just fine under OnGameModeInit. I am asking how would i load 2 tags separately? For example, [data] tag should only load in OnGameModeInit and [vehicles] tag should only load in OnPlayerConnect callack.

Currently i have something like this in OnPlayerConnect:

pawn Код:
public OnPlayerConnect(playerid)
{
    new
        HouseID;

    HouseID = pInfo[playerid][pHouse_ID];
   
    if(HouseID != 0)
    {
        //Here i need to load the vehicle data from the second tag in the house file
    }
    return 1;
}
Reply


Messages In This Thread
Y_Ini tag - by iOxide - 01.10.2014, 11:01
Re: Y_Ini tag - by dusk - 01.10.2014, 11:32
Re: Y_Ini tag - by iOxide - 01.10.2014, 11:43
Re: Y_Ini tag - by iOxide - 02.10.2014, 18:53
Re: Y_Ini tag - by Evocator - 02.10.2014, 19:07
Re: Y_Ini tag - by iOxide - 05.10.2014, 14:22
Re: Y_Ini tag - by RoW001 - 05.10.2014, 14:36
Re: Y_Ini tag - by iOxide - 05.10.2014, 14:43
Re: Y_Ini tag - by iOxide - 05.10.2014, 19:03

Forum Jump:


Users browsing this thread: 3 Guest(s)