18.10.2011, 15:02
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;
}