09.12.2012, 15:34
Ty this...
pawn Код:
stock GetFreeVehiclePlate()
{
new VPlate[10];
for(new v = 0; v < MAX_VEHICLES; v ++)
{
format(VPlate, sizeof(VPlate), "%c%c%c - %d", random(25)+65, random(25)+65, random(25)+65, (100 + random(900)));
if(strcmp(Vehicles[v][Plate], VPlate, true)) return v;
}
return -1;
}