warning 235: public function lacks forward declaration
#1

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.
Reply
#2

forward function(blah);

Pretty obvious you would think
Reply
#3

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!
Reply
#4

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

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!
Reply
#6

Search for RL_OnGameModeInit in all your include files
Reply
#7

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
Reply
#8

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
Reply
#9

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.
Reply
#10

pawn Code:
forward RL_OnGameModeInit();
Above OnGameModeInit.
Reply
#11

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


Forum Jump:


Users browsing this thread: 1 Guest(s)