Random Plate bugs help
#5

pawn Код:
stock GetFreeVehiclePlate()
{
    for(new v = 0; v < MAX_VEHICLES; v ++)
    {
        new const charset[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
        new VPlate[8]; // don't waste resources
        format(VPlate, sizeof(VPlate), "%c%c%c - %03d", charset[random(sizeof(charset))], charset[random(sizeof(charset))], charset[random(sizeof(charset))], (100 + random(900)));
        if(strcmp(Vehicles[v][Plate], VPlate, true)) return v;
    }
    return -1;
}
shows a stupid thing like яFCliams aganin..
Reply


Messages In This Thread
Random Plate bugs help - by Stefand - 09.12.2012, 12:22
Re: Random Plate bugs help - by Vince - 09.12.2012, 13:13
Re: Random Plate bugs help - by Stefand - 09.12.2012, 13:35
Re: Random Plate bugs help - by Vince - 09.12.2012, 13:45
Re: Random Plate bugs help - by Stefand - 09.12.2012, 14:36
Re: Random Plate bugs help - by deb014 - 09.12.2012, 15:34
Re: Random Plate bugs help - by Stefand - 09.12.2012, 15:41
Re: Random Plate bugs help - by Stefand - 09.12.2012, 16:09
Re: Random Plate bugs help - by deb014 - 09.12.2012, 16:19
Re: Random Plate bugs help - by Stefand - 09.12.2012, 16:20

Forum Jump:


Users browsing this thread: 1 Guest(s)