Forgot about that! Is there only switch for ints, maybe you could convert the string.
Sent from my DROID RAZR using Tapatalk 2
Forgot about that! Is there only switch for ints, maybe you could convert the string.
Sent from my DROID RAZR using Tapatalk 2
Can't you create an enum from those strings and switch that?
I'm keeping my IF statement, don't like it? Don't care!!
Posted via Mobile Device
Just looks so dirty.
Sent from my DROID RAZR using Tapatalk 2
Something like that?PHP Code:public enum ChatCommandsEnum{
about, troll
}
//---
var Command = ChatCommandsEnum.ValueOf(Arguments[0].replace(":", "").toLowerCase().trim());
switch (Command)
{
case ChatCommandsEnum.about:
//About command
break;
case ChatCommandsEnum.troll:
//troll command
break;
//etc
}
Don't know if it's right lol ;3
You got it right lol but i would recommend switch either!
Interface is the way to go lol.
1 Interface, 1 Handler, 1 Generic Hashmap or what ever you call it in Java.
You guys don't understand. When I say "I don't care" I mean it.
I don't care!
Could anybody help me with the Sierracms I cant register >.< everytime when I click on "Join Now" I get a blank page which tells me localhost/register cannot be found need help
Well done Alex, keep it going!
Just been reading through the updates, and it looks so cool, I might just test this out, keep it up ^^