Better, faster function?
#7

Quote:
Originally Posted by ******
Посмотреть сообщение
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.
I understand, they're actually variables, so the pawno won't compile it.
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.
Reply


Messages In This Thread
Better, faster function? - by ||123|| - 17.07.2011, 18:09
Re: Better, faster function? - by Mauzen - 17.07.2011, 18:21
Re: Better, faster function? - by ||123|| - 17.07.2011, 18:32
Re: Better, faster function? - by Mauzen - 17.07.2011, 19:01
Re: Better, faster function? - by MoroDan - 17.07.2011, 19:15
Re: Better, faster function? - by MrDeath537 - 17.07.2011, 19:36
Re: Better, faster function? - by ||123|| - 17.07.2011, 21:12

Forum Jump:


Users browsing this thread: 1 Guest(s)