Find a name inside all existing files
#5

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;
                //Just add your code here, the variable which stores the number is h
            }
        }
    }
    return 1;
}
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)