Lacks Forward Declaration - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Lacks Forward Declaration (
/showthread.php?tid=570586)
Lacks Forward Declaration -
nicholasramdhan - 11.04.2015
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?
AW: Lacks Forward Declaration -
Mencent - 11.04.2015
Hello!
Put this in your script (on the top):
PHP код:
forward OnPlayerCommandPerformed(playerid, cmdtext[], success);
Mencent
Re: Lacks Forward Declaration -
Puppy - 11.04.2015
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.
Re: Lacks Forward Declaration -
nicholasramdhan - 11.04.2015
Thanks Mencent