Find a name inside all existing files
#1

I'm trying to load a name, looping all files which exists. I know how to do it, but since my files are numerated like: 0, 1, 2, 3, 4 ... Then I need to know which file of these one the name have been loaded.

pawn Code:
public OnPlayerConnect(playerid)
{
    static str[128];
    Loop(h, MAX_VEHICLES)
    {
       format(file,sizeof(file),local,h);
       if(dini_Exists(file)) // I'm using dini in this cas
       {
           if(!strcmp(GetMyName(playerid), dini_Get(file,"Name"), true)) // Would search on all files
           {
                format(str,sizeof(str),""#red"[CAR SYSTEM]: "#green"Hello %s. You own a vehicle model %i. Your vehicle ID is: %i", // I didn't end here yet.
                Player[playerid][Owner] = 1;
           }
        }
    }
    return 1;
}
So, how can I know what file the name have been loaded from?
Reply


Messages In This Thread
Find a name inside all existing files - by blackwave - 24.01.2011, 17:37
Re: Find a name inside all existing files - by Vince - 24.01.2011, 17:41
Re: Find a name inside all existing files - by blackwave - 24.01.2011, 17:44
Re: Find a name inside all existing files - by blackwave - 24.01.2011, 18:07
AW: Find a name inside all existing files - by Nero_3D - 25.01.2011, 13:49
Re: Find a name inside all existing files - by Sergei - 25.01.2011, 13:53

Forum Jump:


Users browsing this thread: 1 Guest(s)