31.01.2013, 03:27
Hello. I am getting these compiling 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:
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:
Any ideas? :/
Код:
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.
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!
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);



