3 errors, need help.
#1

I've been trying to solve this for a while now but i can't -_-
http://pastebin.com/E76Th6xK
here it is...
Reply
#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
#3

Ok thx will test when i get home
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)