Vehicle Plate
#3

My code.
PHP код:
stock FirstNameLetters(name[MAX_PLAYER_NAME])
{
    new 
        
strpos strfind(name"_"true),
        
string[4];
    
    
format(stringsizeof(string), "%c%c"name[0], name[strpos+1]);
    return 
string;
}
stock randomEx(minmax)
{     
    new 
rand random(max-min)+min;    
    return 
rand;
}
public 
OnPlayerConnect(playerid)
{
format(PlayerVehicleInfo[playerid][v][pvNumberPlate], 13"%s%d"FirstNameLetters(GetPlayerNameEx(playerid)), randomEx(1000099999));

It's still not working
Reply


Messages In This Thread
Vehicle Plate - by FaZeRs - 09.02.2014, 16:47
Re: Vehicle Plate - by dominik523 - 09.02.2014, 17:12
Re: Vehicle Plate - by FaZeRs - 10.02.2014, 12:49
Re: Vehicle Plate - by ikey07 - 10.02.2014, 13:19
Re: Vehicle Plate - by FaZeRs - 10.02.2014, 20:36
Re: Vehicle Plate - by ikey07 - 10.02.2014, 21:37
Re: Vehicle Plate - by FaZeRs - 10.02.2014, 22:55
Re: Vehicle Plate - by Pillhead2007 - 11.02.2014, 03:11
Respuesta: Vehicle Plate - by OTACON - 11.02.2014, 05:09

Forum Jump:


Users browsing this thread: 1 Guest(s)