Any way to optimise this?
Hey guys. So i have a code, first of all, i get the champions name, then check whether a user has this champion and apply some privileges to him. It looks like this :
Code:
|
Re: Any way to optimise this?
With the output you gave alone, it is fine
|
Re: Any way to optimise this?
Okay. Thanks. Nothing then.
|
Re: Any way to optimise this?
you could always use switch(champions_name), just saying.
|
Re: Any way to optimise this?
Quote:
|
Re: Any way to optimise this?
crap, i haven't read it all. based on what he posted, he could switch(cclass) but i don't know how he used it.
|
Re: Any way to optimise this?
Quote:
|
Re: Any way to optimise this?
Quote:
switch(cclass) { case CLASS_IDIOT: as i said, i don't know what he did there, but just assuming he just did a new class for war3ft, he won't need it. |
Re: Any way to optimise this?
He asked how to optimize the code he posted. Not to assume the rest of the code and optimize that. For all we know, he is already using a switch on cclass.
|
Re: Any way to optimise this?
Quote:
|
| All times are GMT -4. The time now is 21:50. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.