Code:
get_pcvar_string( cvar_string_pointer, mapFilename, charsmax( mapFilename ) );
if( strlen( arg1 ) > 2
&& equali( mapFilename, "123", 3 ) )
{
...
}
Prefer 'get_pcvar_string' instead of 'get_cvar_string' because they are faster, but you need the cvar pointer, which you can save at register_cvar. Example:
Code:
cvar_string_pointer = register_cvar( "amx_supercool", "cooler" );
__________________