View Single Post
E1_531G
Senior Member
Join Date: Dec 2017
Old 01-06-2019 , 13:49   Re: Let's talk about new features in plugins
Reply With Quote #5

It's not about plugins but anyway.
I wonder if we can have an enhanced "switch" to work with strings.
Something like this:
PHP Code:
//global
new variable

//local
new Map[32]
get_mapname(Mapcharsmax(Map))

switch( 
Map )
{
    case 
"de_dust2"variable 1;
    case 
"de_inferno"variable 2;
    
//more cases here
    
default: server_print"Unknown map!" );

__________________
My English is A0
E1_531G is offline