TheAnimalKa Posted April 21, 2021 Share Posted April 21, 2021 Is there a code that will get the initial letter of your firstname and your full surname. example my name is, Hello_Help. Then this should be the output: H. Help Link to comment Share on other sites More sharing options...
valelelegod Posted April 21, 2021 Share Posted April 21, 2021 ReturnNameInitials(playerid) { static szName[MAX_PLAYER_NAME]; GetPlayerName(playerid, szName, sizeof(szName)); format(szName, sizeof szName, "%c. %s", szName[0], szName[strfind(szName, "_") + 1]); return szName; } 1 Link to comment Share on other sites More sharing options...
TheAnimalKa Posted April 21, 2021 Author Share Posted April 21, 2021 Thank you, venerable sire. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now