3 errors, need help.
#2

pawn Код:
stock GetRandomMap()
{
        new file[64];
        new i = 0, count = 0, Maps[MAX_MAP_FILES];
        for( ; i != MAX_MAP_FILES; ++i)
        {
            format(file,sizeof(file), "/Maps/%d.ini", i);
            if(fexist(file))
            {
                Maps[count] = i;
                count++;
             }
             else return printf("[NOTICE] File Bugged.");
        }
        NextMapSet = Maps[random(count)];
        return 1;
}
I guess you missplaced else, this code should work. No full code or whatever, so you'll need to check the result by yourself.
Reply


Messages In This Thread
3 errors, need help. - by SwisherSweet - 08.08.2013, 02:38
Re: 3 errors, need help. - by BullseyeHawk - 08.08.2013, 02:48
Re: 3 errors, need help. - by SwisherSweet - 08.08.2013, 04:35

Forum Jump:


Users browsing this thread: 2 Guest(s)