01.10.2014, 11:43
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:
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;
}