13.09.2011, 16:39 
	
	
	
		Code:
its all fine take no notice of the IDS i am having trouble with the genral script
ERROR:
	
	
	
	
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response)// They pressed the first button.
    {
    switch(dialogid)// If you only have one dialog, then this isn't required, but it's neater for when you implement more dialogs.
        {
		case 4:// Our dialog!
    	    {
           	switch(listitem)// Checking which listitem was selected
        	{
        	    case 0:// The first item listed
        	    {
	        	    GetPlayerPos(playerid, X,Y,Z);
	        	    Shamal = CreateVehicle(519, X,Y,Z,90,0,0,120);
                    PutPlayerInVehicle(playerid, Shamal, 0);
	    			TogglePlayerControllable(playerid, 1);
	        	}
	        	case 1:
	        	{
                    GetPlayerPos(playerid, X,Y,Z);
                    Dodo = CreateVehicle(593, X,Y,Z,90,0,0,120);
                    PutPlayerInVehicle(playerid, Dodo, 0);
	    			TogglePlayerControllable(playerid, 1);
                }
                case 2:
                {
                    GetPlayerPos(playerid, X,Y,Z);
                    Sultan = CreateVehicle(560, X,Y,Z,90,184,184,120);
                    SetVehicleNumberPlate(Sultan, "ACar");
                    PutPlayerInVehicle(playerid, Sultan, 0);
	    			TogglePlayerControllable(playerid, 1);
                }
                case 3:
                {
                    GetPlayerPos(playerid, X,Y,Z);
                    Infernus = CreateVehicle(411, X,Y,Z,90,1,1,120);
                    SetVehicleNumberPlate(Infernus, "ACar");
                    PutPlayerInVehicle(playerid, Infernus, 0);
	    			TogglePlayerControllable(playerid, 1);
        	    }
        	 }
    	  }
    	  
    	  case 3:
		  {
                new pName[MAX_PLAYER_NAME]; // Saying pName is the Players Name!
				new string[128]; // Creating the string.
				GetPlayerName(playerid,pName,MAX_PLAYER_NAME); // tells the pName to get the players name!
				format(string, sizeof(string), "%s has Agreed To Our Rules",pName); // This is what will send to everyone!
				SendClientMessageToAll(COLOR_GRAD2, string);
		  }
		  
		  case 5:
              {
           	  switch(listitem)// Checking which listitem was selected
        	  {
		        case 0:
		        {
                   	SetWorldTime(7);
    	        }
		        case 1:
		        {
		            SetWorldTime(12);
		        }
		        case 2:
		        {
		            SetWorldTime(19);
                }
		        case 3:
		        {
		            SetWorldTime(0);
		        }
    		   }
	      }
	  }
	return 1;
}
ERROR:
Код:
C:\DOCUME~1\Rhys\Desktop\SAMP03~2\GAMEMO~1\bare.pwn(2267) : error 030: compound statement not closed at the end of file (started at line 2192) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.




