SA-MP Forums Archive
warning 235: 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: warning 235: public function lacks forward declaration (/showthread.php?tid=277754)



warning 235: public function lacks forward declaration - Scenario - 19.08.2011

Code:
C:\Users\Piccoli\Documents\samp03\pawno\include\ZCMD.inc(62) : warning 235: public function lacks forward declaration (symbol "RL_OnGameModeInit")
This is a very annoying warning. I see it each time I compile nowadays. I haven't seen it in awhile and can't remember a solution to the problem. Does someone else know? Thanks.


Re: warning 235: public function lacks forward declaration - BMUK - 19.08.2011

forward function(blah);

Pretty obvious you would think


Re: warning 235: public function lacks forward declaration - Scenario - 19.08.2011

Quote:
Originally Posted by BMUK
View Post
forward function(blah);

Pretty obvious you would think
I searched the zcmd.inc file for this "RL_OnGameModeInit" function but the results were negative. What am I supposed to forward?

EDIT: Wow. 4,000 posts? I need to get a life!


Re: warning 235: public function lacks forward declaration - AndreT - 19.08.2011

What other includes are you using? It looks like someone has messed up some hooking code I think.


Re: warning 235: public function lacks forward declaration - Scenario - 19.08.2011

pawn Code:
#include <a_samp>
#include <YSI\y_timers>
#include <yom_buttons>
#include <streamer>
#include <progress>
#include <a_zones>
#include <foreach>
#include <djson>
#include <audio>
#include <OPSP>
#include <ZCMD>
#include <gvar>
I know, a lot of those includes are from the NGRP script or whatever. That's because this is the NGRP script, but with my spin on it!


Re: warning 235: public function lacks forward declaration - AndreT - 19.08.2011

Search for RL_OnGameModeInit in all your include files


Re: warning 235: public function lacks forward declaration - Scenario - 19.08.2011

Quote:
Originally Posted by AndreT
View Post
Search for RL_OnGameModeInit in all your include files
I found it in the "OPSP" which is "OnPlayerShootPlayer." I added "forward RL_OnGameModeInit();" and it seems to have worked fine.

Thanks guys. +rep


Re: warning 235: public function lacks forward declaration - BMUK - 21.08.2011

Quote:
Originally Posted by RealCop228
View Post
I searched the zcmd.inc file for this "RL_OnGameModeInit" function but the results were negative. What am I supposed to forward?

EDIT: Wow. 4,000 posts? I need to get a life!
+ 30 posts in 2 days.

Yes you do


Re: warning 235: public function lacks forward declaration - Davz*|*Criss - 21.08.2011

Realcop that warning means:

For example when you have:

pawn Code:
public OnCountDown(playerid)
{
    return 1;
}
And you don't have on top:

pawn Code:
forward OnCountDown(playerid);
Then it gives u these warning, Please check more perfect i hope its this problem.


Re: warning 235: public function lacks forward declaration - Darnell - 21.08.2011

pawn Code:
forward RL_OnGameModeInit();
Above OnGameModeInit.


Re: warning 235: public function lacks forward declaration - Scenario - 21.08.2011

Guys the problem was solved 3 days ago. Thanks though!