Getting half of a players name
#4

Something like this?

pawn Код:
stock GetPlayerFirstName(playerid)
{
    new NickName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, NickName, MAX_PLAYER_NAME);
    strdel(NickName, strfind(NickName, "_"), strlen(NickName));
    return NickName;
}
or
pawn Код:
sscanf(PlayerName,"s[24]'_'{s[24]}",FirstName);
Credits go to this thread: https://sampforum.blast.hk/showthread.php?tid=328590
A search would've gave you an answer pretty fast(******.com).
Reply


Messages In This Thread
Getting half of a players name - by jackx3rx - 24.12.2014, 19:42
Re : Getting half of a players name - by StreetRP - 24.12.2014, 20:03
Re: Getting half of a players name - by jackx3rx - 24.12.2014, 20:15
Re: Getting half of a players name - by Abagail - 24.12.2014, 20:25

Forum Jump:


Users browsing this thread: 1 Guest(s)