[Ajuda] Warnings - 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 (
/showthread.php?tid=494840)
Warnings -
Canema - 14.02.2014
Bom vim aqui pedir ajuda para retirar uns warnings que nгo encontro de jeito nenhum olhei o code de cabo a rabo e nгo encontro quem puder me ajudar falai.
Код:
(68700) : warning 235: public function lacks forward declaration (symbol "Rouboloja1")
(70986) : warning 203: symbol is never used: "ProvocoLoja2"
(70986) : warning 203: symbol is never used: "rouboloja2"
(70986) : warning 203: symbol is never used: "tempoloja2"
(68751) : warning 204: symbol is assigned a value that is never used: "temporouboloja2"
Code do primeiro warning
Код:
public Rouboloja1(playerid)
{
KillTimer(tempoloja1);
if(!PlayerToPoint(8.0,playerid,303.9914,-169.0223,999.5938))
{
format(gstring, sizeof(gstring), "%s e os %s nгo conseguiram roubar o cofre da Loja de armas 1! ID:[%d]", PlayerName(playerid), NomeORG(playerid), playerid);
SendClientMessageToAll(GetPlayerColor(playerid), gstring);
SendClientMessage(playerid, COLOR_GREY, "Vocк nгo estб no cofre da Loja de armas 1.");
ProvocoLoja1[playerid] = 0; roubando[playerid] = 0; rouboloja1 = 0; KillTimer(tempoloja1); temporouboloja1 = 0;
return 1;
}
ForPlayers(i)
{
new grana = 1000 + random(6000);
if(PlayerToPoint(5.0,i,303.9914,-169.0223,999.5938))
{
new var032=0;
if (PlayerInfo[playerid][pLider] != 0) { var032 = PlayerInfo[playerid][pLider]; }
else if (PlayerInfo[playerid][pMembro] != 0) { var032 = PlayerInfo[playerid][pMembro]; }
if(ProvocoLoja1[playerid] == 1)
{
format(gstring, sizeof(gstring), "%s e os %s conseguiram roubar o cofre da Loja de armas 1 ! ID:[%d]", PlayerName(playerid), NomeORG(playerid), playerid);
SendClientMessageToAll(GetPlayerColor(playerid), gstring);
roubando[playerid] = 0; rouboloja1 = 0; ProvocoLoja1[playerid] = 0;
}
if (PlayerInfo[i][pLider] == var032 || PlayerInfo[i][pMembro] == var032)
{
SetPlayerCriminal(i,255, "Assalto a Loja de armas 1");
GivePlayerMoney(i, grana);
format(gstring, sizeof(gstring), "Vocк e os %s roubaram $%d do cofre da Loja de armas 1!",NomeORG(playerid), grana);
SendClientMessage(i, COLOR_YELLOW, gstring);
}
}
}
return 1;
}
Re: Warnings -
FallweN - 14.02.2014
pawn Код:
forward Rouboloja1(playerid);
public Rouboloja1(playerid)
{
KillTimer(tempoloja1);
if(!PlayerToPoint(8.0,playerid,303.9914,-169.0223,999.5938))
{
format(gstring, sizeof(gstring), "%s e os %s nгo conseguiram roubar o cofre da Loja de armas 1! ID:[%d]", PlayerName(playerid), NomeORG(playerid), playerid);
SendClientMessageToAll(GetPlayerColor(playerid), gstring);
SendClientMessage(playerid, COLOR_GREY, "Vocк nгo estб no cofre da Loja de armas 1.");
ProvocoLoja1[playerid] = 0; roubando[playerid] = 0; rouboloja1 = 0; KillTimer(tempoloja1); temporouboloja1 = 0;
return 1;
}
ForPlayers(i)
{
new grana = 1000 + random(6000);
if(PlayerToPoint(5.0,i,303.9914,-169.0223,999.5938))
{
new var032=0;
if (PlayerInfo[playerid][pLider] != 0) { var032 = PlayerInfo[playerid][pLider]; }
else if (PlayerInfo[playerid][pMembro] != 0) { var032 = PlayerInfo[playerid][pMembro]; }
if(ProvocoLoja1[playerid] == 1)
{
format(gstring, sizeof(gstring), "%s e os %s conseguiram roubar o cofre da Loja de armas 1 ! ID:[%d]", PlayerName(playerid), NomeORG(playerid), playerid);
SendClientMessageToAll(GetPlayerColor(playerid), gstring);
roubando[playerid] = 0; rouboloja1 = 0; ProvocoLoja1[playerid] = 0;
}
if (PlayerInfo[i][pLider] == var032 || PlayerInfo[i][pMembro] == var032)
{
SetPlayerCriminal(i,255, "Assalto a Loja de armas 1");
GivePlayerMoney(i, grana);
format(gstring, sizeof(gstring), "Vocк e os %s roubaram $%d do cofre da Loja de armas 1!",NomeORG(playerid), grana);
SendClientMessage(i, COLOR_YELLOW, gstring);
}
}
}
return 1;
}
apague as linhas com uso de
ProvocoLoja20 rouboloja2 tempoloja2 temporouboloja2
Re: Warnings -
Canema - 14.02.2014
Passa os 40 segundos mais nгo da o roubo completo...