Stock issue
#1

Hi. I'm trying to get my faction ini files to load when I start my gamemode, but when I add the function anywhere in my script, pawno fails to compile and gives me 26 errors. Could anyone help me see what's wrong?

OnGameModeInit
Код:
	LoadFactions();
Stock
Код:
stock LoadFactions(){
    new Factionfile[128];
    for(new i=1; i<MAX_FACTIONS; i++){
       format(Factionfile, sizeof(Factionfile), "factions/%d.ini", i);
       new INI:File = INI_Open(Factionfile);
       INI_String("Faction Name",FactionInfo[i][fName], 128);
       INI_Int("Faction Type",FactionInfo[i][fType]);
       INI_Int("Total Members",FactionInfo[i][fMembers]);
       INI_Close();
    }
}
I've tried placing LoadFactions(); to work as a command aswell but the same problem occurred.
Reply


Messages In This Thread
Stock issue - by cuzido - 26.02.2016, 15:52
Re: Stock issue - by BiosMarcel - 26.02.2016, 15:57
Re: Stock issue - by cuzido - 26.02.2016, 16:04
Re: Stock issue - by BiosMarcel - 26.02.2016, 16:06
Re: Stock issue - by cuzido - 26.02.2016, 16:10
Re: Stock issue - by BiosMarcel - 26.02.2016, 16:12
Re: Stock issue - by CodeStyle175 - 26.02.2016, 16:16
Re: Stock issue - by cuzido - 26.02.2016, 16:56

Forum Jump:


Users browsing this thread: 2 Guest(s)