10.02.2014, 12:49
My code.
It's still not working
PHP код:
stock FirstNameLetters(name[MAX_PLAYER_NAME])
{
new
strpos = strfind(name, "_", true),
string[4];
format(string, sizeof(string), "%c%c", name[0], name[strpos+1]);
return string;
}
stock randomEx(min, max)
{
new rand = random(max-min)+min;
return rand;
}
public OnPlayerConnect(playerid)
{
format(PlayerVehicleInfo[playerid][v][pvNumberPlate], 13, "%s%d", FirstNameLetters(GetPlayerNameEx(playerid)), randomEx(10000, 99999));
}