GetPlayerFirstName(playerid)
#4

You can also use strdel to delete part of the player's name :


pawn Code:
stock GetPlayerFirstName(playerid)
{
    new NickName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, NickName, MAX_PLAYER_NAME);
    strdel(NickName, strfind(NickName, "_"), strlen(NickName));
    return NickName;
}


I hope that i have helped .
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)