17.06.2017, 01:34
You gotta use a variable. If you want direct input to work then your function would be:
pawn Код:
NameSpace(const name[])
{
new player_name[MAX_PLAYER_NAME + 1];
strcat(player_name, name, sizeof(player_name));
for(new i = 0, j = strlen(player_name); i < j; i ++)
{
player_name[i] == '_' && (player_name[i] = ' ');
}
return player_name;
}