RandomMessage public function lacks forward declaration
#1

PHP код:
public RandomMessage()
{
    
SendClientMessageToAll(-1"Cops vs Prisioners v2 has been released! Check /updates for more info");
    return 
1;

I'm getting warning:
PHP код:
warning 235: public function lacks forward declaration (symbol "RandomMessage"
Please help.
I will commend all, even to those who will try to help.
Reply
#2

pawn Код:
forward RandomMessage();
public RandomMessage()
{
    SendClientMessageToAll(-1, "Cops vs Prisioners v2 has been released! Check /updates for more info");
    return 1;
}
Reply
#3

Works! Thanks. REP+
Reply
#4

this error means you didnt forward that public

just add this line
above that public

pawn Код:
forward RandomMessage();
@Snoopythekill is Right!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)