Question!
#8

pawn Код:
stock GetPlayerShortName(playerid)
{
    new playerName[MAX_PLAYER_NAME], findString;
    GetPlayerName(playerid, playerName, MAX_PLAYER_NAME);
    findString = strfind(playerName, "_", true);
    if(findString != 0)
    {
        strdel(playerName, 1, findString+1);
        strins(playerName, ". ", 1);
    }
    return playerName;
}
If my name is RuiGy_Chan, it returns R. Chan.
The use is the same of clarencecuzz's code.
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: 1 Guest(s)