Problem about nickname
#1

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:

pawn Код:
new playername2[MAX_PLAYER_NAME];
    new playernamesplit[3][MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername2, sizeof(playername2));
    split(playername2, playernamesplit, '_');
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
Reply


Messages In This Thread
Problem about nickname - by Diablo1st - 06.04.2009, 07:47
Re: Problem about nickname - by Nubotron - 06.04.2009, 08:03
Re: Problem about nickname - by Diablo1st - 06.04.2009, 08:06

Forum Jump:


Users browsing this thread: 3 Guest(s)