Surname - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Surname (
/showthread.php?tid=535383)
Surname -
AdelS - 03.09.2014
How to get players surname,without name?
Re: Surname -
Stinged - 03.09.2014
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;
}
Re: Surname -
AdelS - 03.09.2014
Thanks.