06.04.2009, 07:47
hello
today i was reading a code to take only the name in the nick (only nick with this format Name_Surname) and it work really grat with this code:
so if the nick is Adam_Smith it will take only "Adam" part of the nick, i would know if is possibile take the other part (Smith part), so the part is after the "_"
thanks
today i was reading a code to take only the name in the nick (only nick with this format Name_Surname) and it work really grat with this code:
pawn Код:
new playername2[MAX_PLAYER_NAME];
new playernamesplit[3][MAX_PLAYER_NAME];
GetPlayerName(playerid, playername2, sizeof(playername2));
split(playername2, playernamesplit, '_');
thanks