Quote:
Originally Posted by Chompy
Err, I just remembered why I lower cased the key.. I made the battle system on symp.. err 5-6 months ago? Anyways, I thought that the event would return "s" and "S". So using
PHP Code:
switch(key) {
case "s":
break;
case "S":
break;
}
Would be unnecesary so I just lowercased the key so I would only need the "s" part..
But back then I didn't check if it returned "s" and "S", I just added it because I thought the event would return "s" and "S"..
|
If it returns "s" and "S", doing the following is probably easier:
PHP Code:
switch (key) {
case "s":
case "S":
//stuff
break;
}