SA-MP Forums Archive
Names problem - 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: Names problem (/showthread.php?tid=435160)



Names problem - MrKrour - 05.05.2013

I have got a RP script,
when I type /me
It comes like this
*Ralph_Constanzo looks around
I want to delete the "_" what can I do?
and thank you.


Re: Names problem - Pottus - 05.05.2013

You can use sscanf() and specify _ as the delimiter

sscanf(Name, "p<_>s[24]s[24]", First, Last);
format(Name, sizeof(Name), "%s %s", First, Last);