Lacks Forward Declaration
#1

C:\Users\Nicholas\Desktop\GWDM\gamemodes\GWDM.pwn( 620) : warning 235: public function lacks forward declaration (symbol "OnPlayerCommandPerformed")

Code:
Код:
public OnPlayerCommandPerformed( playerid, cmdtext[], success )
{
	if(!success) SendClientMessage(playerid, COLOR_WHITE, "SERVER: Unknown Command. Please use /cmds for more information.");
	return 1;
}
This is supposed to make the text when a player enters an unknown command to be that, but I can't seem to figure out this warning. Any help?
Reply
#2

Hello!

Put this in your script (on the top):
PHP код:
forward OnPlayerCommandPerformed(playeridcmdtext[], success); 
Mencent
Reply
#3

That shouldn't be the thing fixing the issue as that forward is in the ZCMD include. Make sure you have ZCMD included in your script.

pawn Код:
#include zcmd
Reply
#4

Thanks Mencent
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)