Redefine client_print function with a condition
What I'm trying to do is automatically transform a client_print(id, print_chat, message[]) message in a CC_SendMessage(id, message[]) function. So, I tried several methods:
PHP Code:
PHP Code:
PHP Code:
So, I'm out of ideas. Is it possible to use some kind of a condition with the preprocessor, such as: PHP Code:
|
Re: Redefine client_print function with a condition
I explained perfectly well what I want.
|
Re: Redefine client_print function with a condition
Quote:
Quote:
|
Re: Redefine client_print function with a condition
Find and Replace with Regex.
|
Re: Redefine client_print function with a condition
Quote:
|
Re: Redefine client_print function with a condition
Find what, replace what? More information please. I have never used regex. And I'm asking if this can be done with a simple #define. I don't want to use any other includes for doing this.
|
Re: Redefine client_print function with a condition
Have an editor that can do a Find & Replace with Regex. Then search for
Code:
client_print\s*\((.+?),\s*print_chat\s*,(.+?)\)Code:
CC_SendMessage($1,$2) |
Re: Redefine client_print function with a condition
Quote:
@edit : i deleted the posts live in happiness now boy |
Re: Redefine client_print function with a condition
Quote:
|
Re: Redefine client_print function with a condition
Quote:
|
| All times are GMT -4. The time now is 17:56. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.