Array with float and integer ?
#9

Lordzy already said that enums are the common solution for that. Just putting/removing tags as you need them is pretty dirty style. After all both variants will be compiled to the same amx code, there is no difference in speed. But enums are a logical strcuture that makes your code easier to read and understand, and its easier to spot bugs.
Overriding the tags manually with _: basically does nothing but hiding the tag mismatch warnings.

Id suggest to start directly with enums, dont mess around with bad style.
Reply


Messages In This Thread
Array with float and integer ? - by DiamantEspace18 - 03.01.2015, 17:22
Re: Array with float and integer ? - by Lordzy - 03.01.2015, 17:27
AW: Array with float and integer ? - by CutX - 03.01.2015, 17:32
Re : Array with float and integer ? - by DiamantEspace18 - 03.01.2015, 17:44
Re: Array with float and integer ? - by dominik523 - 03.01.2015, 17:45
Re : Array with float and integer ? - by DiamantEspace18 - 03.01.2015, 17:48
AW: Re: Array with float and integer ? - by CutX - 03.01.2015, 17:53
Re : Array with float and integer ? - by DiamantEspace18 - 03.01.2015, 18:05
Re: Array with float and integer ? - by Mauzen - 03.01.2015, 18:19
Re : Array with float and integer ? - by DiamantEspace18 - 03.01.2015, 18:24

Forum Jump:


Users browsing this thread: 1 Guest(s)