1 bracket missing...Cant find it
#1

Hey all..i've got a very simple problem Yet i cant find whats happening

Code:
MISSING BRACKET: The { bracket on line 12074 does not have a pair!
Result: 
Opening angle brackets ({): 15840 
Closing angle brackets (}): 15839 
1 angle brackets without pair! Fix it!
Line 12074
Code:
TextDrawShowForPlayer(playerid, Textdraw53[playerid]);
Full code
Code:
else if(listitem == 5)
{
     Gps[playerid] = 1;
     TelePosGps[playerid][tX] = 1789.3593;
     TelePosGps[playerid][tY] = -1294.4882;
     SetPlayerRouting(playerid, 1789.3593,-1294.4882);
     TextDrawShowForPlayer(playerid, Textdraw53[playerid]);
     SendClientMessage(playerid, COLOR_GREY,"* Now Tracking ABC Studio");
}
Plz some1 help me...
Reply
#2

What compiler are you using? And it looks like you closed a bracket without opening it. Remove the bracket at line 12074.
Reply
#3

Quote:
Originally Posted by Tee
View Post
What compiler are you using? And just put the { bracket at line 12074.
Here...

line 12704
Code:
12704      {
12705      ShowPlayerDialog(playerid,210,DIALOG_STYLE_MSGBOX,"Acievements","Achievement Name: Serial Killer \n Achievement ID: 10 \n\n Achievement Objective: Kill 75 Players. \n\n Status: EARNED!","Ok","Cancel");
12706      }
Reply
#4

I'm assuming that the compiler you're using, is looking for indentation, because it has a pair. Try this:

pawn Code:
{
    ShowPlayerDialog(playerid,210,DIALOG_STYLE_MSGBOX,"Acievements","Achievement Name: Serial Killer \n Achievement ID: 10 \n\n Achievement Objective: Kill 75 Players. \n\n Status: EARNED!","Ok","Cancel");
}
And again, what's the name of that compiler?
Reply
#5

Quote:
Originally Posted by Tee
View Post
I'm assuming that the compiler you're using, is looking for indentation, because it has a pair. Try this:

pawn Code:
{
    ShowPlayerDialog(playerid,210,DIALOG_STYLE_MSGBOX,"Acievements","Achievement Name: Serial Killer \n Achievement ID: 10 \n\n Achievement Objective: Kill 75 Players. \n\n Status: EARNED!","Ok","Cancel");
}
And again, what's the name of that compiler?
I'm using Pawno ....and No it dint worked..it still gives me 26 errors....

Code:
C:\Users\Desktop\Xtreme life rp\gamemodes\SCRP.pwn(3409) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\Users\Desktop\Xtreme life rp\gamemodes\SCRP.pwn(3438) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\Users\Desktop\Xtreme life rp\gamemodes\SCRP.pwn(3784) : error 004: function "SafeSetPlayerInterior" is not implemented
C:\Users\Desktop\Xtreme life rp\gamemodes\SCRP.pwn(3827) : error 017: undefined symbol "GetVehicleName"
C:\Users\Desktop\Xtreme life rp\gamemodes\SCRP.pwn(3827) : warning 202: number of arguments does not match definition
C:\Users\Desktop\Xtreme life rp\gamemodes\SCRP.pwn(3935) : error 004: function "SafeSetPlayerPos" is not implemented
C:\Users\Desktop\Xtreme life rp\gamemodes\SCRP.pwn(3940) : error 004: function "SafeSetPlayerPos" is not implemented
C:\Users\Desktop\Xtreme life rp\gamemodes\SCRP.pwn(3945) : error 004: function "SafeSetPlayerPos" is not implemented
C:\Users\Desktop\Xtreme life rp\gamemodes\SCRP.pwn(3950) : error 004: function "SafeSetPlayerPos" is not implemented
C:\Users\Desktop\Xtreme life rp\gamemodes\SCRP.pwn(3955) : error 004: function "SafeSetPlayerPos" is not implemented
C:\Users\Desktop\Xtreme life rp\gamemodes\SCRP.pwn(4751) : error 004: function "ABroadCast" is not implemented
C:\Users\Desktop\Xtreme life rp\gamemodes\SCRP.pwn(4753) : error 004: function "ABroadCast" is not implemented
C:\Users\Desktop\Xtreme life rp\gamemodes\SCRP.pwn(5552) : error 004: function "ClearChatbox" is not implemented
C:\Users\Desktop\Xtreme life rp\gamemodes\SCRP.pwn(5570) : error 004: function "SendAdminMessage" is not implemented
C:\Users\Desktop\Xtreme life rp\gamemodes\SCRP.pwn(5575) : error 004: function "OnPlayerUpdateEx" is not implemented
C:\Users\Desktop\Xtreme life rp\gamemodes\SCRP.pwn(5597) : error 004: function "SendAdminMessage" is not implemented
C:\Users\Desktop\Xtreme life rp\gamemodes\SCRP.pwn(5608) : error 004: function "OnPlayerUpdateEx" is not implemented
C:\Users\Desktop\Xtreme life rp\gamemodes\SCRP.pwn(5619) : error 004: function "ClearChatbox" is not implemented
C:\Users\Desktop\Xtreme life rp\gamemodes\SCRP.pwn(5627) : error 004: function "SendAdminMessage" is not implemented
C:\Users\Desktop\Xtreme life rp\gamemodes\SCRP.pwn(5629) : error 004: function "SendAdminMessage" is not implemented
C:\Users\Desktop\Xtreme life rp\gamemodes\SCRP.pwn(5779) : error 004: function "SendIRCMessage" is not implemented
C:\Users\Desktop\Xtreme life rp\gamemodes\SCRP.pwn(5801) : error 004: function "SendIRCMessage" is not implemented
C:\Users\Desktop\Xtreme life rp\gamemodes\SCRP.pwn(5813) : error 004: function "SaveCK" is not implemented
C:\Users\Desktop\Xtreme life rp\gamemodes\SCRP.pwn(5843) : error 004: function "SavePapers" is not implemented
C:\Users\Desktop\Xtreme life rp\gamemodes\SCRP.pwn(5874) : error 004: function "SaveFamilies" is not implemented
C:\Users\Desktop\Xtreme life rp\gamemodes\SCRP.pwn(6118) : error 004: function "OOCOff" is not implemented
C:\Users\Desktop\Xtreme life rp\gamemodes\SCRP.pwn(6132) : error 004: function "OOCOff" is not implemented
Reply
#6

You have missing bracket OnDialogResponse, try finding it, if not, I'm wrong.
Reply
#7

Hello Mr.Anonymous,

Would you please post the following lines: 12625 - 12775, or post the whole function including line 12704
Because it seems that the line 12704 looks fine, but there could be a bracket missing somewhere around the line 12074.
Reply
#8

Go through the recent functions you've been editing in your Game Mode. Searching around the error lines won't help, because the script's scopes are unbalanced, therefore it starts giving function errors.
Reply
#9

Yesterday I had the same problem. If in the end you can't find that missing bracket, try using a SVN. ( I use TortoiseSVN) It has a program called Tortoise Merge that will allow you to compare visually two versions of your gamemode. It helped me alot. Only problem is that you need to have backups of your gamemode...
Reply
#10

Quote:
Originally Posted by Adil
View Post
Go through the recent functions you've been editing in your Game Mode. Searching around the error lines won't help, because the script's scopes are unbalanced, therefore it starts giving function errors.
Only what i did was removed the ammu-nation & guns system form my GM...and nothin else..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)