string &? switch
#1

Hey i`m a bit confused now.

How can i switch string / use switch checking the string

pawn Code:
new name[15];
        if(sscanf(params, "s[15]", name))
        {
            return 1;
        }
        format(name, 15,"%s",name);
        switch(name)
        {
            case 'sell':
            {
                    .......................
This is giving errors for me.

Do i need to use strcmp or smth like that?
Reply


Messages In This Thread
string &? switch - by GaGlets(R) - 01.10.2010, 07:05
Re: string &? switch - by samgreen - 01.10.2010, 07:16
Re: string &? switch - by Kyosaur - 01.10.2010, 08:51
AW: string &? switch - by Bubelbub - 15.07.2012, 19:15

Forum Jump:


Users browsing this thread: 1 Guest(s)