Vehicles
#6

Quote:
Originally Posted by Micko123
Посмотреть сообщение
I am not asking for easiest way to do it. I am asking for efficient way to do it. Which way will cause less lag?? Array or case?
If case is better it is not problem for me to write 212 cases..
None of them will cause any lagg. But yea, theoretically your switch() code is faster. Which is a totally neglible difference. So, use what you like more. I just like the Array version more because it's cleaner code in my opinion.

BTW: If your server experiences lagg issues because you check vehicle speeds, you are doing something terribly wrong (Not that you do, just for example).
PAWN can handle more stuff than you might think.
Reply


Messages In This Thread
Vehicles - by Micko123 - 24.12.2016, 09:13
Re: Vehicles - by BiosMarcel - 24.12.2016, 09:39
Re: Vehicles - by Micko123 - 24.12.2016, 09:40
Re: Vehicles - by NaS - 24.12.2016, 10:00
Re: Vehicles - by Micko123 - 24.12.2016, 10:06
Re: Vehicles - by NaS - 24.12.2016, 10:11
Re: Vehicles - by Vince - 24.12.2016, 10:34
Re: Vehicles - by Micko123 - 24.12.2016, 10:52
Re: Vehicles - by NaS - 24.12.2016, 11:03
Re: Vehicles - by Micko123 - 24.12.2016, 11:06

Forum Jump:


Users browsing this thread: 1 Guest(s)