House system loading
#4

pawn Код:
new str[64];
for(new i = 0; i < MAX_HOUSES;i++)
{
    format(str,sizeof(str), HousePath, i);
    INI_ParseFile(str, "LoadHouses_%s", .bExtra = true, .extra = i );
}
This is proper way to load it at yini.

And this is how you shoud define load data....

pawn Код:
forward LoadHouses_data(i, name[], value[]);
public LoadHouses_data(i, name[], value[])
{
    yourhousedata...
    return true;
}
Reply


Messages In This Thread
House system loading - by jackx3rx - 09.08.2014, 22:39
Re: House system loading - by Don_Cage - 10.08.2014, 00:04
Re: House system loading - by jackx3rx - 10.08.2014, 00:20
Re: House system loading - by Don_Cage - 10.08.2014, 00:25
Re: House system loading - by jackx3rx - 10.08.2014, 12:26

Forum Jump:


Users browsing this thread: 1 Guest(s)