Factions not loading.
#1

pawn Код:
new Factionfile[256];
    for(new i = 0; i < MAX_FACTIONS; i++)
    {
        format(Factionfile, sizeof(Factionfile), "factions/%s.ini", i);
        if(fexist(Factionfile) )
        {
Basically I'm trying to load the faction by it's name but alas it is not loading and I've debugged it to these lines. Can anyone see what is wrong with them?
Reply
#2

Make the file names numbers, not strings.
Reply
#3

But if i wanted to keep the file as a string
Reply
#4

Then you would have to specify the name of the file in the script(There would be another way you could POSSIBLY do it, but it would take a lot of explaining).
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)