27.09.2013, 15:22
Are you sure that Owner's name doesn't exceed 24?
I used:
It compiles and prints:
I used:
pawn Код:
public OnGameModeInit( )
{
printf( "The name is \"%s\"", NameWithoutUnderscore( "test_TEST" ) );
return 1;
}
stock NameWithoutUnderscore( _name[ MAX_PLAYER_NAME ] )
{
for( new i, l = strlen( _name ); i != l; i++ ) if( _name[ i ] == '_' ) _name[ i ] = ' ';
return _name;
}
pawn Код:
[18:27:46] The name is "test TEST"