[Ajuda] Warnings.
#1

pawn Код:
C:\Users\Renno\Desktop\LPS V1.0\gamemodes\LPS.pwn(1491) : warning 209: function "OnDialogResponse" should return a value
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.
Cod
pawn Код:
if(dialogid == CLIMA) // Menu
{
        if(response)
        {
         if(listitem == 0) // Clima
             {
                 ShowPlayerDialog(playerid, CLIMA+1, DIALOG_STYLE_LIST, "Clima", "Ensolarado \nTemporal \nNublado \nCeu Azul \nTempestade de Areia \nEscuro \nQuente \nVoltar", "Selecionar", "Cancelar");
             }
             if(listitem == 1) // Hora
             {
                 ShowPlayerDialog(playerid, CLIMA+2, DIALOG_STYLE_LIST, "Hora", "1:00 \n3:00 \n5:00 \n7:00 \n9:00 \n11:00 \n13:00 \n15:00 \n17:00 \n19:00 \n21:00 \n23:00 \nVoltar", "Selecionar", "Cancelar");
             }
        }
        return 1;
}
if(dialogid == CLIMA+1) // Clima
{
        if(response)
        {
             if(listitem == 0) // Ensolarado
             {
                 SetPlayerWeather(playerid, 5);
             }
             if(listitem == 1) // Temporal
             {
                 SetPlayerWeather(playerid, 8);
             }
             if(listitem == 2) // Nublado
             {
                 SetPlayerWeather(playerid, 9);
             }
             if(listitem == 3) // Ceu Azul
             {
                 SetPlayerWeather(playerid, 10);
             }
             if(listitem == 4) // Tempestade de Areia
             {
             SetPlayerWeather(playerid, 19);
             }
             if(listitem == 5) // Escuro
             {
                 SetPlayerWeather(playerid, 45);
             }
             if(listitem == 6) // Quente
             {
                 SetPlayerWeather(playerid, 11);
             }
             if(listitem == 7) // Voltar
             {
            OnPlayerCommandText(playerid, "/meutempo");
             }
        }
        return 1;
}
if(dialogid == CLIMA+2) // Hora
{
        if(response)
        {
             if(listitem == 0) //
             {
                 SetPlayerTime(playerid,1,0);
             }
             if(listitem == 1) //
             {
                 SetPlayerTime(playerid,3,0);
             }
             if(listitem == 2) //
             {
                 SetPlayerTime(playerid,5,0);
             }
             if(listitem == 3) //
             {
                 SetPlayerTime(playerid,7,0);
             }
             if(listitem == 4) //
             {
                 SetPlayerTime(playerid,9,0);
             }
             if(listitem == 5) //
             {
                 SetPlayerTime(playerid,11,0);
             }
             if(listitem == 6) //
             {
                 SetPlayerTime(playerid,13,0);
             }
             if(listitem == 7) //
             {
                 SetPlayerTime(playerid,15,0);
             }
             if(listitem == 8) //
             {
                 SetPlayerTime(playerid,17,0);
             }
             if(listitem == 9) //
             {
                 SetPlayerTime(playerid,19,0);
             }
             if(listitem == 10) //
             {
                 SetPlayerTime(playerid,21,0);
             }
             if(listitem == 11) //
             {
                 SetPlayerTime(playerid,23,0);
             }
             if(listitem == 12) //
             {
            OnPlayerCommandText(playerid, "/meutempo");
             }
         }
         return 1;
      }
}
Reply


Messages In This Thread
[Ajuda] Warnings. - by Renno3D - 23.12.2011, 12:35
Re: [Ajuda] Warnings. - by kratty - 23.12.2011, 12:38
Re: [Ajuda] Warnings. - by Renno3D - 23.12.2011, 12:40
Re: [Ajuda] Warnings. - by RebeloX - 23.12.2011, 12:44
Re: [Ajuda] Warnings. - by kratty - 23.12.2011, 12:47
Re: [Ajuda] Warnings. - by RebeloX - 23.12.2011, 12:56
Re: [Ajuda] Warnings. - by kratty - 23.12.2011, 13:01
Re: [Ajuda] Warnings. - by Detonador - 23.12.2011, 13:18
Re: [Ajuda] Warnings. - by kratty - 23.12.2011, 13:20
Re: [Ajuda] Warnings. - by RebeloX - 23.12.2011, 13:25

Forum Jump:


Users browsing this thread: 3 Guest(s)