compound statement not closed
#1

How can i fix this
Error : C:\Users\Administrator\Desktop\TKS\filterscripts\c ln.pwn(14 : error 030: compound statement not closed at the end of file (started at line 45)
like 45
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == dialog)
    {
//line 45        if(response)
                {
                if(listitem == 0)
                        {
                        SetPlayerColor(playerid,0x008000FF);
                        SendClientMessage(playerid,0x008000FF, "The color of your name has been set to green.");
                        PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
                    }
                if(listitem == 1)
                        {
                        SetPlayerColor(playerid,0xF8F8FFFF);
                        SendClientMessage(playerid,0xF8F8FFFF, "The color of your name has been set to white.");
                        PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
                    }
                if(listitem == 2)
                        {
                        SetPlayerColor(playerid,0xFF0000FF);
                        SendClientMessage(playerid,0xFF0000FF, "The color of your name has been set to red.");
                        PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
                    }
                if(listitem == 3)
                        {
                        SetPlayerColor(playerid,0xFFA500FF);
                        SendClientMessage(playerid,0xFFA500FF, "The color of your name has been set to orange.");
                        PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
                    }
                if(listitem == 4)
                        {
                        SetPlayerColor(playerid,0x0000FFFF);
                        SendClientMessage(playerid,0x0000FFFF, "The color of your name has been set to blue.");
                        PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
                    }
                if(listitem == 5)
                        {
                        SetPlayerColor(playerid,0x9400D3FF);
                        SendClientMessage(playerid,0x9400D3FF, "The color of your name has been set to violet.");
                        PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
                    }
                if(listitem == 6)
                        {
                        SetPlayerColor(playerid,0xFFFF00FF);
                        SendClientMessage(playerid,0xFFFF00FF, "The color of your name has been set to yellow.");
                        PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
                    }
                if(listitem == 7)
                        {
                        SetPlayerColor(playerid,0xDC143CFF);
                        SendClientMessage(playerid,0xDC143CFF, "The color of your name has been set to crimson.");
                        PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
                    }
                if(listitem == 8)
                        {
                        SetPlayerColor(playerid,0x556B2FFF);
                        SendClientMessage(playerid,0x556B2FFF, "The color of your name has been set to olivegreen.");
                        PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
                    }
                if(listitem == 9)
                        {
                        SetPlayerColor(playerid,0xFF00FFFF);
                        SendClientMessage(playerid,0xFF00FFFF, "The color of your name has been set to fuchsania.");
                        PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
                    }
                if(listitem == 10)
                        {
                        SetPlayerColor(playerid,0x32CD32FFF);
                        SendClientMessage(playerid,0x32CD32FF, "The color of your name has been set to limegreen.");
                        PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
                    }
                if(listitem == 11)
                        {
                        SetPlayerColor(playerid,0x8B4513FF);
                        SendClientMessage(playerid,0x8B4513FF, "The color of your name has been set to brown.");
                        PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
                    }
                if(listitem == 12)
                        {
                        SetPlayerColor(playerid,0x000000);
                        SendClientMessage(playerid,0x000000, "The color of your name has been set to Black.");
                        PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
                    }
                if(listitem == 13)
                        {
                        SetPlayerColor(playerid,0x696969FF);
                        SendClientMessage(playerid,0x696969FF, "The color of your name has been set to grey.");
                        PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
                    }
                if(listitem == 14)
                        {
                        SetPlayerColor(playerid,0x800080);
                        SendClientMessage(playerid,0x800080, "The color of your name has been set to purple.");
                        PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
                        {
                if(listitem == 15)
                        {
                        SetPlayerColor(playerid,0x00ffff);
                        SendClientMessage(playerid,0x00ffff, "The color of your name has been set to Cyan.");
                        PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
			    }
   			}
			return 1;
 	}
	return 0;
}
+rep For helper
Reply
#2

in this u have forgot to close braces
Код:
 if(listitem == 14)
                        {
                        SetPlayerColor(playerid,0x800080);
                        SendClientMessage(playerid,0x800080, "The color of your name has been set to purple.");
                        PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
                        {
replace this with
Код:
 if(listitem == 14)
                        {
                        SetPlayerColor(playerid,0x800080);
                        SendClientMessage(playerid,0x800080, "The color of your name has been set to purple.");
                        PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
                        }
Reply
#3

thanks bro ur great
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)