Using #define to set command
Hello everybody,
I have this code here : PHP Code:
Quote:
PHP Code:
PHP Code:
Anyone knows how to solve that? |
Re: Using #define to set command
First off you need a space after the
Code:
#define variable valueAlso charsmax is already sizeof -1 And Lastly just register the command exactly. Code:
register_clcmd ("say /command", "CallBack"); |
Re: Using #define to set command
1. There is a space, maybe wasn't copied correctly.
2. Why not? 3. I dont want to Hook Say for that, isn't a possible to use register_clcmd? Sorry, I went full retard, didn't check the log. -_- Quote:
PHP Code:
|
Re: Using #define to set command
Quote:
|
Re: Using #define to set command
I use it as a template for some other plugins and don't want to search it all the time.
|
Re: Using #define to set command
Quote:
|
Re: Using #define to set command
Quote:
|
Re: Using #define to set command
There also used in some functions, there just not shown here.
I made several strings, but I'll make them defines, thanks for information. |
Re: Re: Using #define to set command
Quote:
|
Re: Using #define to set command
PHP Code:
|
| All times are GMT -4. The time now is 16:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.