Reloads
#2

From what I understand, that's enough.
pawn Код:
stock LoadNewMission()
{
    new file[64],mapid;
    for( ; mapid != MAX_MISSION_FILES; ++mapid)
    {
        format(file,sizeof(file),"/Missions/%d.ini",mapid);
        if(fexist(file))
        {
            mapid++;
            break;
        }
    }
   
    format(file, sizeof(file), "/Missions/%d.ini", mapid);
    if(fexist(file))
    {
        LastMissionStarted = mapid;
        return mapid;
    }
    else return printf("[NOTICE] File Bugged.");
}
Correct me if I misunderstood ...
Reply


Messages In This Thread
Reloads - by Kitten - 21.05.2012, 19:22
Re: Reloads - by ViniBorn - 21.05.2012, 19:26
Re: Reloads - by Kitten - 21.05.2012, 19:44
Re: Reloads - by iggy1 - 21.05.2012, 19:55
Re: Reloads - by iGetty - 21.05.2012, 20:03
Re: Reloads - by Jefff - 21.05.2012, 22:03

Forum Jump:


Users browsing this thread: 2 Guest(s)