[HELP]Saving License Plate
#9

pawn Код:
public LoadPlate()
{
    for(new i=0; i<MAX_VEHICLES; i++)
    {
        new arrCoords[20][64];
        new strFromFile2[256];
        new cplate[512];
        new cid[512];
        new path[70];
        format(path, sizeof(path),"CarPlate/carplate%d.cfg", i);
        if(fexist(path))
        {
            new File:file = fopen(path, io_read);
            if(file)
            {
                new idx;
                fread(file, strFromFile2);
                SetVehicleNumberPlate(i,strFromFile2);
                fclose(file);
            }
        }
    }
    return 1;
}
Should work.
Reply


Messages In This Thread
[HELP]Saving License Plate - by pop.nicku - 07.10.2011, 14:43
Re: [HELP]Saving License Plate - by Jeffry - 07.10.2011, 19:48
Re: [HELP]Saving License Plate - by pop.nicku - 13.10.2011, 11:59
Re: [HELP]Saving License Plate - by whitedragon - 13.10.2011, 12:27
Re: [HELP]Saving License Plate - by Jeffry - 13.10.2011, 16:05
Re: [HELP]Saving License Plate - by pop.nicku - 14.10.2011, 14:06
Re: [HELP]Saving License Plate - by Jeffry - 14.10.2011, 15:46
Re: [HELP]Saving License Plate - by pop.nicku - 14.10.2011, 19:43
Re: [HELP]Saving License Plate - by Jeffry - 18.10.2011, 15:02
Re: [HELP]Saving License Plate - by W-P - 26.09.2012, 13:18

Forum Jump:


Users browsing this thread: 1 Guest(s)