Surname
#1

How to get players surname,without name?
Reply
#2

I just wrote that real quick, not tested.
pawn Код:
GetPlayerSurname(playerid)
{
    new playerName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playerName, sizeof (playerName));
    new pos = strfind(playerName, "_");
    strdel(playerName, 0, pos + 1);
    return playerName;
}
Reply
#3

Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)