Error 004: function not implemented
#1

Both of the SendAdminMessage functions are returning error 004, i have a 3rd SendAdminMessage(not visible below), but that doesn't return any errors.
pawn Код:
Removed
What does that mean?
Reply
#2

Do you have any other line (stock) for "SendAdminMessage"?
Reply
#3

It might be a problem in the stock.
Reply
#4

Show the SendAdminMessage stock
Reply
#5

Oh yeah sorry i forgot.
pawn Код:
stock SendAdminMessage(rank, color, string[])
{
    foreach(Player, i)
    {
        if(PlayerInfo[i][Admin] >= rank) SendClientMessage(i, color, string);
    }
    return 1;
}
Pretty simple one.
Reply
#6

have you put that stock function after calling for it? I mean you have first the pucli onplayertext and only then you create the SendAdminMessage stock? If yes then put it before.
Reply
#7

Thanks for the help Kimossab. I had it set up like this:
Defines
Publics
Stocks
Commands

And it always worked, but now i have to switch the stocks above the publics?
Well anyways, thanks.
Reply
#8

Quote:
Originally Posted by CalvinC
Посмотреть сообщение
Thanks for the help Kimossab. I had it set up like this:
Defines
Publics
Stocks
Commands

And it always worked, but now i have to switch the stocks above the publics?
Well anyways, thanks.
Well I'm not sure in pawn since I never actually tested it, but, in most languanges, if you make a function yourself then you need to create it before using it. For example, you created that function and were trying to call it, though you only created further in the code. Basically most compilers will give that sort of errors because it wasn't created before. I can't really explain it very well, but let's go for a simpler example, using a variable before declaring it, it's basically the same mistake here.

You're welcome.
Reply
#9

Yes i know, that's how it is in pawn too, but it didn't have to be with stocks before, only variables.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)