30.11.2013, 18:21
I used Bracket Finder to find my missing brackets in my script, but I am a scripting noob, and do not know how to fix the brackets.
Here is an Example of a line its telling me to fix
The red text is the specific line 76597
Please Help
Код:
MISSING BRACKET: The { bracket on line 76254 does not have a pair!
MISSING BRACKET: The { bracket on line 76597 does not have a pair!
MISSING BRACKET: The { bracket on line 76608 does not have a pair!
MISSING BRACKET: The { bracket on line 76623 does not have a pair!
MISSING BRACKET: The { bracket on line 76662 does not have a pair!
MISSING BRACKET: The { bracket on line 76674 does not have a pair!
MISSING BRACKET: The { bracket on line 76686 does not have a pair!
MISSING BRACKET: The { bracket on line 76698 does not have a pair!
MISSING BRACKET: The { bracket on line 76710 does not have a pair!
Result:
Opening angle brackets ({): 15072
Closing angle brackets (}): 15063
9 angle brackets without pair! Fix it!
Код:
{
if(response)
{
if(listitem == 0) // Duty
{
if(PlayerInfo[playerid][pDuty]==0)
{
SendClientMessageEx(playerid, COLOR_WHITE, "You are now on-duty.");
SetPlayerColor(playerid, COLOR_TR);
OnDuty[playerid] = 1;
PlayerInfo[playerid][pDuty] = 1;
}
else if(PlayerInfo[playerid][pDuty]==1)
{
SendClientMessageEx(playerid, COLOR_WHITE, "You are no longer on-duty.");
SetPlayerColor(playerid, TEAM_HIT_COLOR);
OnDuty[playerid] = 0;
PlayerInfo[playerid][pDuty] = 0;
}
}
if(listitem == 1) // Clothes
{
ShowPlayerDialog(playerid, TRSKINMENU, DIALOG_STYLE_LIST, "Tierra Robada Clothing","Male skin 1\nMale skin 2\nMale skin 3\nMale skin 4\nMale skin 5\nFemale skin 1\nFemale skin 2\nFemale skin 3", "Select", "Cancel");
}
}
}
Please Help

