Jump to content
  • 0

Eroare compilare.


Iulian

Question

Salut, am inceput un sistem de palarii/sepci etc. si mi-a dat destule erori. le-am rezolvat pe toate dar una imi da batai de cap

EROARE:

[pawn]C:\Users\Iuly\Downloads\Testing Server\filterscripts\accesorii.pwn(91) : error 030: compound statement not closed at the end of file (started at line 52)

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Error.

[/pawn]

SCRIPT:

[pawn]//Linia 52

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])

{

    if(dialogid == DIALOG_ACCESORII)

  {

    if(response)

      {

        if(listitem == 0)

          {

  ShowPlayerDialog(playerid, DIALOG_ADAUGA,DIALOG_STYLE_LIST,"Alege modelul","Model 1 \nModel 2","Selecteaza","Aluneaza");

      }

        if(listitem == 1)

        {

        EditAttachedObject(playerid, 1);

      SendClientMessage(playerid, 0xFFFFFFFF, "[Testing Server]: ~g~Modifica ~r~palaria/sapca !");

        }

        if(listitem == 2)

    {

      for ( new i = 0; i < 5; i ++ )

          if ( IsPlayerAttachedObjectSlotUsed( playerid, i ) )

                      RemovePlayerAttachedObject( playerid, i );

        }

  return 0;

  }

if(dialogid == DIALOG_ADAUGA)

  {

    if(response)

      {

        if(listitem == 0)

          {

          SetPlayerAttachedObject( playerid, 1, 18891, 2, 0.094485, 0.007215, 0.0, 0.000000, 0.000000, 0.000000, 1.200000, 1.200000, 1.200000  );

            EditAttachedObject(playerid, 1);

          }

            if(listitem == 1)

            {

            SetPlayerAttachedObject( playerid, 1, 18891, 2, 0.094485, 0.007215, 0.0, 0.000000, 0.000000, 0.000000, 1.200000, 1.200000, 1.200000  );

              EditAttachedObject(playerid, 1);

              }

        }

        return 0;

}[/pawn]

EDIT: Am un warning si la ultimul return. loose indentation, l-am invartit in toate felurile si la fel

Rate me :)

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Voila :)

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(dialogid == DIALOG_ACCESORII)
	{
 		if(response)
      	{
    		if(listitem == 0)
      		{
				ShowPlayerDialog(playerid, DIALOG_ADAUGA,DIALOG_STYLE_LIST,"Alege modelul","Model 1 \nModel 2","Selecteaza","Aluneaza");
		  	}
     		if(listitem == 1)
  		  	{
     			EditAttachedObject(playerid, 1);
   				SendClientMessage(playerid, 0xFFFFFFFF, "[Testing Server]: ~g~Modifica ~r~palaria/sapca !");
   		  	}
   		  	if(listitem == 2)
	  		{
   				for ( new i = 0; i < 5; i ++ )
       			if ( IsPlayerAttachedObjectSlotUsed( playerid, i ) )
          		        RemovePlayerAttachedObject( playerid, i );
   		  	}
		}
	   	return 1;
	}

	if(dialogid == DIALOG_ADAUGA)
	{
		if(response)
  		{
    		if(listitem == 0)
      		{
       			SetPlayerAttachedObject( playerid, 1, 18891, 2, 0.094485, 0.007215, 0.0, 0.000000, 0.000000, 0.000000, 1.200000, 1.200000, 1.200000  );
        		EditAttachedObject(playerid, 1);
       		}
    	    if(listitem == 1)
         	{
         		SetPlayerAttachedObject( playerid, 1, 18891, 2, 0.094485, 0.007215, 0.0, 0.000000, 0.000000, 0.000000, 1.200000, 1.200000, 1.200000  );
           		EditAttachedObject(playerid, 1);
          	}
        }
        return 1;
    }
	return 1;
}

Greu e sa inchizi parantezele si sa aranjezi cum trebuie !

I'm back bitches.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.