any idea - 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: any idea (
/showthread.php?tid=201466)
any idea -
TopAz07 - 21.12.2010
Any idea how to delete this "_" in player name. For example John_Smith and it should be John Smith. This is my first post in this topic so please don't punish me
Re: any idea -
JaTochNietDan - 21.12.2010
Well here's an example:
pawn Код:
new name[10] = "John_Mayor";
name[strfind(name, "_", true)] = ' ';
printf("Name: %s",name); // Returns John Mayor
All it does is find the cell containing _ and then replace it with a space character.