17.07.2011, 21:12
Quote:
Are "CPcar" and "CPtruck" defines (I hope not)? If they are then "switch" will work, if they're variables that won't even compile!
The variable method is much better, especially as it makes the code more flexible in the long run. |
You said "especially as it makes the code more flexible in the wrong run.". You aware that I was using it 'locally', I mean not globally at the top. Just wanted to know that as I find this information alot of useful. Because as the code will only be flexible when it's inside those brackets.
- My thanks to everyone who helped me in this topic.