15.06.2011, 01:24
Okay, so you need a function which removes the underscore from a role play name properly? That's easy...
pawn Код:
stock GetNameEx(playerid)
{
new str[24], String[128];
GetPlayerName(playerid, String, 24);
strmid(str, String, 0, strlen(String), 24);
for(new i = 0; i < MAX_PLAYER_NAME; i++)
{
if (str[i] == '_') str[i] = ' ';
}
return str;
}