Firstname_Lastname HELP - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Firstname_Lastname HELP (
/showthread.php?tid=169277)
Firstname_Lastname HELP -
ShawnMiller1337 - 19.08.2010
Hello all , In-Game when you are near a player you see , here is an example
Shawn_Miller (31)
How would I remove the _
so it would display only:
Shawn Miller (31)
Any Help ?
Re: Firstname_Lastname HELP -
Backwardsman97 - 19.08.2010
Try running this in your OnPlayerConnect.
pawn Код:
new
name[24],
pos = strfind(name,"_");
GetPlayerName(playerid,name,24);
if(pos != -1)
{
strdel(name,pos,pos+1);
strins(name," ",pos);
SetPlayerName(playerid,name);
}