Making vehicle plates random LS-%d
#4

Hash, fixed:
pawn Код:
public OnVehicleSpawn(vehicleid)
{
    new string[32];
    if(vehicleid >= 0 && vehicleid <= 2000)
    {
        new randnumb = 1000 + random(8999);
        format(string, sizeof(string),"LS - %d",randnumb);
        SetVehicleNumberPlate(vehicleid, string);
        SetVehicleToRespawn(vehicleid);
    }
}
Otherwise you could get 10999.
Reply


Messages In This Thread
Making vehicle plates random LS-%d - by Spiral - 19.02.2011, 17:16
Re: Making vehicle plates random LS-%d - by Hal - 19.02.2011, 17:25
Re: Making vehicle plates random LS-%d - by Hash [NL-RP] - 19.02.2011, 18:08
Re: Making vehicle plates random LS-%d - by jameskmonger - 19.02.2011, 18:20
Re: Making vehicle plates random LS-%d - by Hash [NL-RP] - 19.02.2011, 18:22
Re: Making vehicle plates random LS-%d - by thimo - 21.02.2011, 18:25
Re: Making vehicle plates random LS-%d - by PowerPC603 - 21.02.2011, 20:17
Re: Making vehicle plates random LS-%d - by speed258 - 08.07.2011, 19:33

Forum Jump:


Users browsing this thread: 1 Guest(s)