Question!
#3

pawn Код:
stock ShortenName(playerid)
{
    new PlayerName[MAX_PLAYER_NAME];
    new Find, Final;
    GetPlayerName(playerid, PlayerName, MAX_PLAYER_NAME);
    Find = strfind(PlayerName, "_", false, 1);
    Final = strdel(PlayerName, 1, Find+1);
    return Final;
}
If you want to shorten their name, just use ShortenName(playerid);

Supposing that you are using the name Marcus_Bauer, this function will return M_Bauer
Reply


Messages In This Thread
Question! - by PhoeNiX778 - 11.07.2012, 15:05
Re: Question! - by Larceny - 11.07.2012, 15:29
Re: Question! - by clarencecuzz - 11.07.2012, 15:46
Re: Question! - by clarencecuzz - 11.07.2012, 15:48
Re: Question! - by PhoeNiX778 - 11.07.2012, 15:51
Re: Question! - by Lordzy - 11.07.2012, 15:54
Re: Question! - by clarencecuzz - 11.07.2012, 16:13
Re: Question! - by Larceny - 11.07.2012, 16:24
Re: Question! - by PhoeNiX778 - 11.07.2012, 16:33
Re: Question! - by Larceny - 11.07.2012, 16:45

Forum Jump:


Users browsing this thread: 3 Guest(s)