• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] [HELP] GetplayerName Initial Firstname then full Lastname.
#2
Code:
new name[MAX_PLAYER_NAME], first_name[12], last_name[12]; GetPlayerName(playerid, name, MAX_PLAYER_NAME); first_name[0] = name[0]; for(new i; i < strlen(name); i) { if (name[i] == '_') { strcat(last_name, name[i]); strdel(first_name, 1, i-1); break; } } printf("Print >> %s. %s.", first_name, last_name);
[Image: Screenshot-66.png]
  Reply


Messages In This Thread
RE: [HELP] GetplayerName Initial Firstname then full Lastname. - by Radical - 2021-04-21, 04:09 PM