[Ajuda] Erro em OnDialogResponse
#1

E ai gente tф com um errinho aqui podem me ajudar?
Код:
E:\Arquivos do Victor\Arquivos de Jogos\Rockstar Games\San Andreas Multiplayer Servers\World of Games [RPG] [0.3x] (v1.01Beta) Original\filterscripts\notebook.pwn(44) : warning 217: loose indentation
E:\Arquivos do Victor\Arquivos de Jogos\Rockstar Games\San Andreas Multiplayer Servers\World of Games [RPG] [0.3x] (v1.01Beta) Original\filterscripts\notebook.pwn(46) : warning 217: loose indentation
E:\Arquivos do Victor\Arquivos de Jogos\Rockstar Games\San Andreas Multiplayer Servers\World of Games [RPG] [0.3x] (v1.01Beta) Original\filterscripts\notebook.pwn(52) : warning 213: tag mismatch
E:\Arquivos do Victor\Arquivos de Jogos\Rockstar Games\San Andreas Multiplayer Servers\World of Games [RPG] [0.3x] (v1.01Beta) Original\filterscripts\notebook.pwn(56) : warning 213: tag mismatch
E:\Arquivos do Victor\Arquivos de Jogos\Rockstar Games\San Andreas Multiplayer Servers\World of Games [RPG] [0.3x] (v1.01Beta) Original\filterscripts\notebook.pwn(61) : warning 217: loose indentation
E:\Arquivos do Victor\Arquivos de Jogos\Rockstar Games\San Andreas Multiplayer Servers\World of Games [RPG] [0.3x] (v1.01Beta) Original\filterscripts\notebook.pwn(64) : error 030: compound statement not closed at the end of file (started at line 39)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Na linha que ele diz que comeзa o erro й
Код:
      if(response)
           {
          if(listitem == 0) // Botгo COMPRAS ONLINE
           {
			 ShowPlayerDialog(playerid, 4, DIALOG_STYLE_LIST, "Notebook - Compras Online", "Vida\nColete\nArmas", "Selecionar", "Fazer Logoff");
                return 1;
		 }
         if(dialogid == 4)
         {
		  if(response)
		   {
		   if(listitem == 0)
			{
	         GivePlayerHealth(playerid, 100.0);
	         }
	         else if(listitem == 1)
			  {
			   GivePlayerArmour(playerid, 100.0);
               return 1;
         }
      }
   }
    return 0;
}
#endif
Reply
#2

pawn Код:
if ( response ) {

    if ( listitem == 0 )
    return ShowPlayerDialog ( playerid, 4, DIALOG_STYLE_LIST, "Notebook - Compras Online", "Vida\nColete\nArmas", "Selecionar", "Fazer Logoff");

    if ( dialogid == 4 ) {

        if ( response ) {

            switch ( listitem ) {

                case 0: GivePlayerHealth ( playerid, 100.0 ) ;
                case 1: GivePlayerArmour ( playerid, 100.0 ) ;
            }
        }
    }
    return 0;
}
Reply
#3

@EDITADO

Postaram jб .-.
Reply
#4

iSmirnoff seu code nгo funfoue Shadow jб lhe passo o code
Reply
#5

Oxi, me manda o filterscript que vocк estб usando

entre

[pawn] [*/pawn] ( Sem * )
Reply
#6

Code do meu FS
pawn Код:
#include <a_samp>
#include <HidNat>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

#else

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/notebook", cmdtext, true, 0) == 0)
    {
        ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "Notebook System - by:Victor_Nascimento", "Compras Online", "Selecionar", "Fazer Logoff");
        return 1;
    }
    return 0;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
   if(dialogid == 3)  // ID DO DIALOG QUE TEM QUE SER RESPONDIDO, NO CASO O "Notebook System"
       {
      if(response)
           {
          if(listitem == 0) // Botгo COMPRAS ONLINE
           {
             ShowPlayerDialog(playerid, 4, DIALOG_STYLE_LIST, "Notebook - Compras Online", "Vida\nColete\nArmas", "Selecionar", "Fazer Logoff");
                return 1;
         }
         if(dialogid == 4)
         {
          if(response)
           {
           if(listitem == 0)
            {
             GivePlayerHealth(playerid, 100.0);
             }
             else if(listitem == 1)
              {
               GivePlayerArmour(playerid, 100.0);
               return 1;
         }
      }
   }
    return 0;
}
#endif
Reply
#7

agora sim

pawn Код:
#include <a_samp>
#include <HidNat>


public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}


public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/notebook", cmdtext, true, 0) == 0)
    {
        ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "Notebook System - by:Victor_Nascimento", "Compras Online", "Selecionar", "Fazer Logoff");
        return 1;
    }
    return 0;
}

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

    switch ( dialogid ) {

        case 3: {

            if ( response ) {

                switch ( listitem ) {

                    case 0: ShowPlayerDialog ( playerid, 4, DIALOG_STYLE_LIST, "Notebook - Compras Online", "Vida\nColete\nArmas", "Selecionar", "Fazer Logoff");
                }
            }
        }
        case 4: {

            if ( response ) {

                switch ( listitem ) {

                    case 0: GivePlayerHealth ( playerid, 100.0 ) ;
                    case 1: GivePlayerArmour ( playerid, 100.0 ) ;
                }
            }
        }
    }
    return 0;
}
Reply
#8

Foi, muito obrigado, agora o problema й eu terminar de fazer o resto kk, Obg, REP+
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)