Replacing "_" with " "
#2

Use the strfind function on the name of the person, for example:

pawn Код:
new name[24];
GetPlayerName(playerid,name,24);
name[strfind(name,"_")] = ' ';
After that code is executed, the name variable will now contain a space where there used to be an _.

This is only an example, you likely need to adapt it for your script.
Reply


Messages In This Thread
Replacing "_" with " " - by 77ther - 08.02.2011, 21:04
Re: Replacing "_" with " " - by JaTochNietDan - 08.02.2011, 21:09
Re: Replacing "_" with " " - by 77ther - 08.02.2011, 21:20
Re: Replacing "_" with " " - by Unknown123 - 08.02.2011, 21:30
Re: Replacing "_" with " " - by 77ther - 08.02.2011, 21:41
Re: Replacing "_" with " " - by DRIFT_HUNTER - 08.02.2011, 21:54
Re: Replacing "_" with " " - by 77ther - 13.02.2011, 00:38
Re: Replacing "_" with " " - by California - 13.02.2011, 00:59
Re: Replacing "_" with " " - by Shadow™ - 13.02.2011, 01:46
Re: Replacing "_" with " " - by 77ther - 13.02.2011, 12:38

Forum Jump:


Users browsing this thread: 2 Guest(s)