Quote:
Originally Posted by Adam_Chaprnka
Quote:
Originally Posted by Kapil
pawn Код:
stock GetUserName(playerid) { new string[24]; GetPlayerName(playerid,string,24); for(new i = 0; i < 24; i++) { if (string[i] == '_') { string[i] = ' '; } } return string; }
|
Even more simpler.
pawn Код:
UnderscoreToSpace(name[]) { new pos = strfind(name,"_", true); if( pos != -1 ) name[pos] = ' '; }
|
the point was not about being simpiler, but faster.