Function Not Implemented; Missing Brackets?
#1

Hello. I am getting these compiling errors:

Код:
larp.pwn(3477) : error 004: function "SafeGivePlayerMoney" is not implemented
larp.pwn(3506) : error 004: function "SafeGivePlayerMoney" is not implemented
larp.pwn(3852) : error 004: function "SafeSetPlayerInterior" is not implemented
larp.pwn(3895) : error 017: undefined symbol "GetVehicleName"
larp.pwn(3895) : warning 202: number of arguments does not match definition
larp.pwn(3995) : error 004: function "SafeSetPlayerPos" is not implemented
larp.pwn(4000) : error 004: function "SafeSetPlayerPos" is not implemented
larp.pwn(4005) : error 004: function "SafeSetPlayerPos" is not implemented
larp.pwn(4010) : error 004: function "SafeSetPlayerPos" is not implemented
larp.pwn(4015) : error 004: function "SafeSetPlayerPos" is not implemented
larp.pwn(4826) : error 004: function "ABroadCast" is not implemented
larp.pwn(4828) : error 004: function "ABroadCast" is not implemented
larp.pwn(5630) : error 004: function "ClearChatbox" is not implemented
larp.pwn(5648) : error 004: function "SendAdminMessage" is not implemented
larp.pwn(5653) : error 004: function "OnPlayerUpdateEx" is not implemented
larp.pwn(5675) : error 004: function "SendAdminMessage" is not implemented
larp.pwn(5686) : error 004: function "OnPlayerUpdateEx" is not implemented
larp.pwn(5697) : error 004: function "ClearChatbox" is not implemented
larp.pwn(5705) : error 004: function "SendAdminMessage" is not implemented
larp.pwn(5707) : error 004: function "SendAdminMessage" is not implemented
larp.pwn(5857) : error 004: function "SendIRCMessage" is not implemented
larp.pwn(5879) : error 004: function "SendIRCMessage" is not implemented
larp.pwn(5891) : error 004: function "SaveCK" is not implemented
larp.pwn(5921) : error 004: function "SavePapers" is not implemented
larp.pwn(5952) : error 004: function "SaveFamilies" is not implemented
larp.pwn(6196) : error 004: function "OOCOff" is not implemented
larp.pwn(6210) : error 004: function "OOCOff" is not implemented

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
My first thought that there was a missing bracket, so i ran the Missing Bracket Finder that was released here: https://sampforum.blast.hk/showthread.php?tid=171429

The report of the Missing Bracket Finder was this:

Код:
MISSING BRACKET: The { bracket on line 20729 does not have a pair!
Result: 
Opening angle brackets ({): 15682 
Closing angle brackets (}): 15681 
1 angle brackets without pair! Fix it!
I can't find where the missing brackets.

Here are parts of my script where the missing brackets were reported:







And here is the code of lines 15628-15687, and lines 20720-20729:

Код:
	if(Current == CluckinBell)
	{
	 	switch(row)
	 	{
	  		case 0:
	  		{
	  			SafeGivePlayerMoney(playerid, -3);
	  			if(Health <= 74.9)
	  			{
	  				SetPlayerHealth(playerid, PlayerHealth+25);
				}
				else
				{
				    SetPlayerHealth(playerid, 100.0);
				}
	  			SendClientMessage(playerid, 0xFFC801C8, "Cluckin' Bell: Thank you for your interest in our food, good afternoon!");
				PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
				TogglePlayerControllable(playerid, 1);
				SetTimerEx("CanDriveThruAgain", 7000, 0, "i", playerid);
				return 1;
			}
			case 1:
	  		{
	  			SafeGivePlayerMoney(playerid, -6);
	  			if(Health <= 49.9)
	  			{
	  				SetPlayerHealth(playerid, PlayerHealth+50);
				}
				else
				{
				    SetPlayerHealth(playerid, 100.0);
				}
	  			SendClientMessage(playerid, 0xFFC801C8, "Cluckin' Bell: we thank you and hope you enjoy your Chicken Wing, have a good day!");
				PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
				TogglePlayerControllable(playerid, 1);
				SetTimerEx("CanDriveThruAgain", 7000, 0, "i", playerid);
				return 1;
			}
			case 2:
	  		{
	  			SafeGivePlayerMoney(playerid, -9);
	  			SetPlayerHealth(playerid, 100);
	  			SendClientMessage(playerid, 0xFFC801C8, "Cluckin' Bell: We hope you eat it all, have a nice day!");
				PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
				TogglePlayerControllable(playerid, 1);
				SetTimerEx("CanDriveThruAgain", 7000, 0, "i", playerid);
				return 1;
			}
			case 3:
			{
			    if(PlayerTied[playerid] != 1 || PlayerCuffed[playerid] != 1)
			    {
			        TogglePlayerControllable(playerid, 1);

				}
				SetTimerEx("CanDriveThruAgain", 7000, 0, "i", playerid);
			    return 1;
			}
		}
	}
Код:
	CTextdraw8 = TextDrawCreate(222.000000, 154.000000, "5");
	TextDrawBackgroundColor(CTextdraw8, 255);
	TextDrawFont(CTextdraw8, 1);
	TextDrawLetterSize(CTextdraw8, 0.500000, 2.000000);
	TextDrawColor(CTextdraw8, 255);
	TextDrawSetOutline(CTextdraw8, 0);
	TextDrawSetProportional(CTextdraw8, 1);
	TextDrawSetShadow(CTextdraw8, 0);
Any ideas? :/
Reply
#2

Anyone? Still not resolved. PM if you would like to take a look at my gamemode.
Reply
#3

Show before textdraw and after textdraw code.. Please! And end of the case script!
Reply
#4

Quote:
Originally Posted by Scrillex
Посмотреть сообщение
Show before textdraw and after textdraw code.. Please! And end of the case script!
Here is my whole 'public OnGameModeInit()'

http://pastebin.com/bX4eGt7a

& the public w/ the cases

http://pastebin.com/hRfWUv7z

^ I think the public above might have something wrong where the final } is placed.

Here is a screenie of the end of the public:



Script is based off Raven's Roleplay, if that helps.
Reply
#5

******
Quote:

Indent your code properly - that's the ONLY solution. Errors can manifest themselves on incorrect lines sometimes as the compiler doesn't realise anything is missing until it reaches something it wasn't expecting later on in the code. And then the question is what line should a "missing" feature be reported on? In theory if it's missing, it's missing from every line after where it could have first appeared (but backtracking to that point is hard). Solution!

Or..
Quote:

Show the callback / function above where the error is
Solution PrawkC

Tryed to look how it is but found something only like this you need only to do it with textdraws...

Orginal :https://sampforum.blast.hk/showthread.php?tid=281867
Reply
#6

Quote:
Originally Posted by Scrillex
Посмотреть сообщение
******

Or..


Tryed to look how it is but found something only like this you need only to do it with textdraws...

Orginal :https://sampforum.blast.hk/showthread.php?tid=281867
Quote:
Originally Posted by Fizz
Посмотреть сообщение
http://pastebin.com/hRfWUv7z

^ I think the public above might have something wrong where the final } is placed.

Here is a screenie of the end of the public:

^may have missed my edit
Reply
#7

So try to coment all case 3 .. Lets see if you got some missing } before.. I will wait for answer
Reply
#8

Quote:
Originally Posted by Scrillex
Посмотреть сообщение
So try to coment all case 3 .. Lets see if you got some missing } before.. I will wait for answer
Tried replacing the whole public w/ the cases with the original Raven's Roleplay one (which it would compile with 0 errors with) and im still getting the same errors. So it must be something else :L
Reply
#9

It can be something else.. Just In your place I deleted the server map (Not all files what is needed to you.. Un rar the new server.. puted pwn and recompile again..) Maybe something went wrong with pwn... I had some issues that helped out If same thing is going on need to look trow all script.. I looked around and there wasn't nothing wrong with } and {..
Reply
#10

Quote:
Originally Posted by ******
Посмотреть сообщение
Look at your own image, specifically the collapsing guide on the left, and you will see that that last brace isn't correctly matched. Somewhere in your mode, something MUST be indented or spaced inconsistently and you need to find it.
Just figured out that was 'cause of my user-defined language I downloaded. I just set the notepad++ language to C++, and it no longer shows the last brace as incorrectly matched.

I would REALLY appreciate it if you could take a look at my script for me, but don't expect you to go out of your way.

EDIT: I think it may be a missing semicolon. :$
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)