GetPlayerFirstName(playerid)
#2

do it with sscanf2 ^^
parse FirstName, search for the '_', the second name is a {quiet} parameter, so aSecondName is not required:
pawn Code:
sscanf(PlayerName,"s[24]'_'{s[24]}",FirstName);
i <3 the '_' search function, maybe the p<_> delimeter could do that too..
Reply


Messages In This Thread
GetPlayerFirstName(playerid) - by iGetty - 25.03.2012, 13:20
Re: GetPlayerFirstName(playerid) - by Babul - 25.03.2012, 13:25
Re: GetPlayerFirstName(playerid) - by iGetty - 25.03.2012, 13:27
Re: GetPlayerFirstName(playerid) - by rjjj - 25.03.2012, 13:33
Re: GetPlayerFirstName(playerid) - by iGetty - 25.03.2012, 13:36
Re: GetPlayerFirstName(playerid) - by rjjj - 25.03.2012, 13:37
Re: GetPlayerFirstName(playerid) - by iGetty - 25.03.2012, 13:41

Forum Jump:


Users browsing this thread: 1 Guest(s)