18.03.2012, 02:47
This is what I use.
pawn Код:
stock strreplace(string[], find, replace)
{
for(new i=0; string[i]; i++) {
if(string[i] == find) {
string[i] = replace;
}
}
}
stock GetName(playerid)
{
new string[MAX_PLAYER_NAME];
GetPlayerName(playerid,string,sizeof(string));
strreplace(string,'_',' ');
return string;
}