SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 21/10/2018, 07:09 AM   #1
RedSmokeR
Little Clucker
 
Join Date: May 2016
Posts: 27
Reputation: 0
Post Warning...

Hi Guyz,I am Getting a warning "
PHP Code:
warning 235: public function lacks forward declaration (symbol "OnPlayerCommandPerformed"
Here is my Code:
Define : #define ERROR_MSG "Unknown Command! Type /cmds For Available Commands."
Line :
PHP Code:
public OnPlayerCommandPerformed(playeridcmdtext[], success)
{
    if(!
success)
    return 
SendClientMessage(playeridCOLOR_ERROR""ERROR_MSG"");
    return 
1;

RedSmokeR is offline   Reply With Quote
Old 21/10/2018, 07:18 AM   #2
Calisthenics
High-roller
 
Join Date: May 2018
Posts: 1,228
Reputation: 205
Default Re: Warning...

Only certain command processors provide this callback, what do you use for commands?
Calisthenics is offline   Reply With Quote
Old 21/10/2018, 08:28 AM   #3
RedSmokeR
Little Clucker
 
Join Date: May 2016
Posts: 27
Reputation: 0
Default Re: Warning...

Quote:
Originally Posted by Calisthenics View Post
Only certain command processors provide this callback, what do you use for commands?
I am just using that if player perform any unknown command,The Message appears,The "ERROR_MSG"
RedSmokeR is offline   Reply With Quote
Old 21/10/2018, 09:15 AM   #4
UFF
Banned
 
Join Date: Feb 2018
Location: Funky World
Posts: 346
Reputation: 28
Default Re: Warning...

That callback is used by zcmd. Have you included zcmd?|

pawn Code:
#include zcmd
UFF is offline   Reply With Quote
Old 21/10/2018, 09:23 AM   #5
RedSmokeR
Little Clucker
 
Join Date: May 2016
Posts: 27
Reputation: 0
Default Re: Warning...

Quote:
Originally Posted by UFF View Post
That callback is used by zcmd. Have you included zcmd?|

pawn Code:
#include zcmd
Thanks Dude,I forgot to write...
RedSmokeR is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Warning 213: Tag mismatch and warning 202: number of arguments does not match definition ConnorG Scripting Help 5 12/01/2018 02:32 AM
[Ajuda] warning 217: loose indentation, warning 202: number of arguments does not match definition NATANGameron Português/Portuguese 7 05/04/2017 12:36 AM
warning (7784) : warning 202: number of arguments does not match definition b0b Scripting Help 3 08/06/2014 05:26 PM
warning 215: expression has no effect & warning 235: public function lacks forward declaration botak Scripting Help 4 27/12/2013 12:38 PM
[warning]como tira esse warning?? syslogg Português/Portuguese 3 06/01/2011 12:59 AM


All times are GMT. The time now is 01:44 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.