[AJUDA] Warnings Ao Compilar. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA] Warnings Ao Compilar. (
/showthread.php?tid=305057)
[AJUDA] Warnings Ao Compilar. -
Renno3D - 21.12.2011
Warnings
pawn Код:
C:\Users\Renno\Desktop\LPS V1.0\gamemodes\LPS.pwn(862) : 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+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;
}
}
Re: [AJUDA] Warnings Ao Compilar. -
[O.z]Caroline - 21.12.2011
pawn Код:
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");
}
}
}