09.02.2011, 20:58
You can also use this function
pawn Код:
stock strreplace(string[], find, replace)
{
for(new i=0; string[i]; i++)
{
if(string[i] == find)
{
string[i] = replace;
}
}
}
pawn Код:
stock rpname(playerid)
{
new cname[MAX_PLAYER_NAME];
GetPlayerName(playerid, cname, sizeof(cname));
strreplace(cname, '_', ' ');
return cname;
}