18.03.2012, 02:49
You need this function:
And....then.
pawn Код:
stock strreplace(string[], find, replace)
{
for(new i=0; string[i]; i++) {
if(string[i] == find) {
string[i] = replace;
}
}
}
pawn Код:
stock GetName(playerid)
{
new string[MAX_PLAYER_NAME];
GetPlayerName(playerid,string,sizeof(string));
strreplace(string,'_',' ');
return string;
}