[Ajuda] Warning - 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] Warning (
/showthread.php?tid=184259)
[Ajuda] Warning -
Serial_Killer - 18.10.2010
ae to com um warning q nao consigo tira ele so apagando o
pawn Код:
CintoPlayer[playerid] = 0;
GameTextForPlayer(playerid, "~r~/cinto Caso Contrario ~n~Morrer em Batidas", 4000, 4);
return 1;
da ai to achando q o warning ta na {} entre a linha 4 e 6
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
CintoPlayer[playerid] = 0;
GameTextForPlayer(playerid, "~r~/cinto Caso Contrario ~n~Morrer em Batidas", 4000, 4);
return 1;
new v = GetOwnedVehicleID(playerid);
for(new m = 0; m < MAX_MODS; m++)
{
if (VehicleInfo[v][vMod][m] > 0)
{
AddVehicleComponent(v,VehicleInfo[v][vMod][m]);
}
}
if (VehicleInfo[v][vPaintjob] > -1)
{
ChangeVehiclePaintjob(v,VehicleInfo[v][vPaintjob]);
}
return 1;
}
Warning = (8) : warning 225: unreachable code
Linha = 8 new v = GetOwnedVehicleID(playerid);
acho q e sobre a {} entre a Linha 4 e 6
se alguem tiver uma ideia posta ae fazendo favor...
Re: [Ajuda] Warning -
Shelby - 18.10.2010
pawn Код:
CintoPlayer[playerid] = 0;
GameTextForPlayer(playerid, "~r~/cinto Caso Contrario ~n~Morrer em Batidas", 4000, 4);
return 1;//apague isto.
Respuesta: [Ajuda] Warning -
Serial_Killer - 18.10.2010
Vlw lek !!! Brigadao