GetPlayerNameEx? - 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: GetPlayerNameEx? (
/showthread.php?tid=166397)
GetPlayerNameEx? -
Ihsan_Cingisiz - 08.08.2010
Hello, how can i already remove the Ihsan'_'Cingisiz """_"""

??
Re: GetPlayerNameEx? -
Hiddos - 08.08.2010
pawn Код:
stock RemUnderLine(name[MAX_PLAYER_NAME])
{
new UL = strfind(name, "_", true);
while(UL != -1)
{
name[UL] = ' ';
UL = strfind(name, "_", true);
}
return name;
}
Didn't tested it.
Works as:
Assign the name to the result of the function:
pawn Код:
new name[MAX_PLAYER_NAME]; format(name, sizeof name, "Sir_John_Davy"); //There's probably another function available then format, don't know :P.
print(name); // Will print "Sir_John_Davy"
name = RemUnderLine(name);
print(name); //Will print "Sir John Davy"
Don't set player names according to this
Once again, I don't know if it works.
Edit: tried it, doesn't work. Lemme fix it.
Edit: Works now.
Re: GetPlayerNameEx? -
Jeffry - 08.08.2010
http://forum.sa-mp.com/showpost.php?...19&postcount=3