Move 3 almost same functions to one
Hi, I need you to move those functions to client_command.
PHP Code:
|
Re: Move 3 almost same functions to one
why ?
|
Re: Move 3 almost same functions to one
You want to avoid code duplication?
You have to find what is different and take it out of the code: PHP Code:
|
Re: Move 3 almost same functions to one
Read the command and do a switch based off of that?
__SETKILLS __SETHEADSHOTS __SETSURVIVE PHP Code:
|
Re: Move 3 almost same functions to one
:twisted:
|
Re: Move 3 almost same functions to one
thanks, Bugsy & joaquimandrade. both works :mrgreen:
|
| All times are GMT -4. The time now is 21:52. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.