[HELP] ERROR: function prototypes do not match
Hay, got another error on the plugin I'm making and help is appreciated.
So I get this error when I compile: Code:
(34) : error 100: function prototypes do not match PHP Code:
PHP Code:
|
Re: [HELP] ERROR: function prototypes do not match
From console.inc :
PHP Code:
PHP Code:
|
Re: [HELP] ERROR: function prototypes do not match
Quote:
Code:
(393) : error 017: undefined symbol "sCommand" PHP Code:
PHP Code:
|
Re: [HELP] ERROR: function prototypes do not match
Why do you need
Code:
if (StrEqual(sCommand, "say")) that is useless, just remove it because : _ OnClientSayCommand is triggered when a player wrote in chat _ Command_hidetag is the callback of Code:
RegAdminCmd("sm_hidetag", Command_hidetag, ADMFLAG_KICK); |
Re: [HELP] ERROR: function prototypes do not match
Because when I send the !hidetag I want the OWNER tag to disappear (right now I'm just having "Hiderole" to see if it works). But when I removed the "if (StrEqual(sCommand, "say"))" it just sends a empty message: https://gyazo.com/42b8c815272ad6c5c1d8d04f06338ebc
I want to send the command and all messages after that should be with no tag and if i type !hidetag again it will take the tag back. |
Re: [HELP] ERROR: function prototypes do not match
Ok, now I understand what you're looking for, but you still don't need "if (StrEqual(sCommand, "say"))" for the same reason I said above.
Use instead : Code:
if (StrEqual(sArgs, "!hidetag") || StrEqual(sArgs, "/hidetag")) |
Re: [HELP] ERROR: function prototypes do not match
Quote:
Code:
error 035: argument type mismatch (argument 1) PHP Code:
PHP Code:
|
Re: [HELP] ERROR: function prototypes do not match
You do not need to put in
Code:
public Action Command_hidetag(int iClient, int sArgs) Code:
public Action OnClientSayCommand(int iClient, const char[] sCommand, const char[] sArgs) |
Re: [HELP] ERROR: function prototypes do not match
Quote:
You are Admin on a server and then you want to sneak on players and see if they are breaking rules or something so you want to hide your chattag. Then you type /hidetag and then all messages you write will not show your tag, and when you want your tag again you just type /hidetag again and it will come back. Right now it just changes the tag only on the message when I type !hidetag. |
Re: [HELP] ERROR: function prototypes do not match
Ok, now I know what you want,
|
All times are GMT -4. The time now is 14:07. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.