RandomMessage public function 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: RandomMessage public function lacks forward declaration (
/showthread.php?tid=510053)
RandomMessage public function lacks forward declaration -
zohartrejx - 29.04.2014
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.
Respuesta: RandomMessage public function lacks forward declaration -
Snoopythekill - 29.04.2014
pawn Код:
forward RandomMessage();
public RandomMessage()
{
SendClientMessageToAll(-1, "Cops vs Prisioners v2 has been released! Check /updates for more info");
return 1;
}
Re: RandomMessage public function lacks forward declaration -
zohartrejx - 29.04.2014
Works! Thanks. REP+
Re: RandomMessage public function lacks forward declaration -
JeaSon - 29.04.2014
this error means you didnt forward that public
just add this line
above that public
@Snoopythekill is Right!