Getting First Initials of a RP Name
#4

This works too, but the absolutely has to be in FirstName_LastName format to work.
pawn Код:
stock retFirstLeters(name[MAX_PLAYER_NAME])
{
    new
        strpos = strfind(name, "_", true),
        string[4];
   
    format(string, sizeof(string), "%c%c", name[0], name[strpos+1]);
    return string;
}
Reply


Messages In This Thread
Getting First Initials of a RP Name - by Ballu Miaa - 14.12.2012, 12:39
Re: Getting First Initials of a RP Name - by Babul - 14.12.2012, 12:57
Re: Getting First Initials of a RP Name - by Ballu Miaa - 14.12.2012, 12:59
Re: Getting First Initials of a RP Name - by ReneG - 14.12.2012, 13:23
Re: Getting First Initials of a RP Name - by LarzI - 14.12.2012, 13:26
Re: Getting First Initials of a RP Name - by Ballu Miaa - 14.12.2012, 16:05
Re: Getting First Initials of a RP Name - by Babul - 15.12.2012, 08:02
Re: Getting First Initials of a RP Name - by Ballu Miaa - 15.12.2012, 08:04

Forum Jump:


Users browsing this thread: 1 Guest(s)