[SOLVED]Compiling Error
#1

can anybody tell me what this error means?
Код:
F:\Server\gamemodes\W-S-M.pwn(402) : error 004: function "MMsgx" is not implemented
I have added:
On the Line of public OnGameModeInit()
Код:
public MMsgx()
{
    SendClientMessageToAll(COLOR_GREY, MMsgs[random(sizeof(MMsgs))]);
		return 1;
}
Also i added Forward
Код:
forward MMsgx();
and new Also
Код:
new MMsgs[][] =
{
"Aao aks oak oaa Oe kar aao",
"Wao noy aba es Admino ? Applo ut www.****.com"
;
EDIT: I just add new msgs system no need of No Compile Error
Reply
#2

Where did you but the public and where did you put the forward of that public?
Reply
#3

You've defined the function, but haven't actually used it. From your code, i presume you are trying to get random messages. If so, add the following line to the OnGameModeInit() callback:

pawn Код:
SetTimer("MMsgx",60000,1);
That will display a random message every 60 seconds.
Reply
#4

Quote:
Originally Posted by Puffmac
You've defined the function, but haven't actually used it. From your code, i presume you are trying to get random messages. If so, add the following line to the OnGameModeInit() callback:

pawn Код:
SetTimer("MMsgx",60000,1);
That will display a random message every 60 seconds.
if I put it on my gm without the timer, it works. So it has nothing to do with that.
Reply
#5

How can it work without a timer? MMsgx isn't a native callback. Please, do explain that to me.

Anyway, I've checked the Pawn manual:

Quote:
function name is not implemented

There is no implementation for the designated function. The
function may have been “forwardly” declared —or prototyped—
but the full function definition including a statement, or statement
block, is missing.

Which in essence, in case you don't understand the language used in the manual, means that you have forwarded the function, but have not actually defined it.

I have tried to recreate this error, but can't seem to do so.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)