01.10.2010, 07:05
Hey i`m a bit confused now.
How can i switch string / use switch checking the string
This is giving errors for me.
Do i need to use strcmp or smth like that?
How can i switch string / use switch checking the string
![Grin](images/smilies/biggrin.gif)
pawn Code:
new name[15];
if(sscanf(params, "s[15]", name))
{
return 1;
}
format(name, 15,"%s",name);
switch(name)
{
case 'sell':
{
.......................
Do i need to use strcmp or smth like that?