[Ajuda] Warnings
#1

Fala Galera, vim pedir a ajuda de vocкs ai pra me ajudarem a remover esses warnings, ja fiz de tudo e ta dificil.

Код:
H:\CargaPesada\pawno\include\DOF2.inc(1391) : warning 219: local variable "a" shadows a variable at a preceding level
H:\CargaPesada\pawno\include\DOF2.inc(1391) : warning 219: local variable "b" shadows a variable at a preceding level
H:\CargaPesada\pawno\include\PPC_MissionsLixeiro.inc(78) : warning 204: symbol is assigned a value that is never used: "LoadMsgs"
H:\CargaPesada\pawno\include\PPC_MissionsPizza.inc(78) : warning 204: symbol is assigned a value that is never used: "LoadMsgs"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Warnings.
linha dos 2 primeiros warnings:
Код:
private DOF2::SwapSortedEntries (a [2], b [2])
{
 	new c [2];
	c [0] = a [0];
	c [1] = a [1];
	a [0] = b [0];
	a [1] = b [1];
	b [0] = c [0];
	b [1] = c [1];
}
linha do 3є warning:
Код:
Lixeiro_BeginJob(playerid)
{
	// Setup local variables
	new Lixeiro[128], Step, HouseID, Float:x, Float:y, Float:z,LoadMsgs[128];

	// Job has started
	APlayerData[playerid][JobStarted] = true;
	// Store the vehicleID (required to be able to check if the player left his vehicle)
	APlayerData[playerid][VehicleID] = GetPlayerVehicleID(playerid);
	// Set jobstep to 1 (going to the first house)
	Step = 1;
	APlayerData[playerid][JobStep] = Step;
	// Get the HouseID of the house where the mission starts (the first house in the list of in-range owned house)
	HouseID = APlayerData[playerid][LixeiroHouses][Step];
	// Set the TextDraw so the player can see it
	format(Lixeiro, 255, TXT_LixeiroTextDraw, Step, APlayerData[playerid][CourierMaxStep], AHouseData[HouseID][HouseName]);
	TextDrawSetString(APlayerData[playerid][MissionText], Lixeiro);
	// Grab the x, y, z positions for the first location
	x = AHouseData[HouseID][HouseX];
	y = AHouseData[HouseID][HouseY];
	z = AHouseData[HouseID][HouseZ];
	// Create a checkpoint where the player should deliver his package
	SetPlayerCheckpoint(playerid, x, y, z, 3);
	// Set the job-fail-time for the global vehicle-timer
	APlayerData[playerid][VehicleTimerTime] = Job_TimeToFailMission;
	// Send the player a message to inform him that the mission has started

	return 1;
}
Linha do 4є e ultimo warning:
Код:
Pizza_BeginJob(playerid)
{
	// Setup local variables
	new Pizza[128], Step, HouseID, Float:x, Float:y, Float:z,LoadMsgs[128];

	// Job has started
	APlayerData[playerid][JobStarted] = true;
	// Store the vehicleID (required to be able to check if the player left his vehicle)
	APlayerData[playerid][VehicleID] = GetPlayerVehicleID(playerid);
	// Set jobstep to 1 (going to the first house)
	Step = 1;
	APlayerData[playerid][JobStep] = Step;
	// Get the HouseID of the house where the mission starts (the first house in the list of in-range owned house)
	HouseID = APlayerData[playerid][LixeiroHouses][Step];
	// Set the TextDraw so the player can see it
	format(Pizza, 255, TXT_PizzaTextDraw, Step, APlayerData[playerid][CourierMaxStep], AHouseData[HouseID][HouseName]);
	TextDrawSetString(APlayerData[playerid][MissionText], Pizza);
	// Grab the x, y, z positions for the first location
	x = AHouseData[HouseID][HouseX];
	y = AHouseData[HouseID][HouseY];
	z = AHouseData[HouseID][HouseZ];
	// Create a checkpoint where the player should deliver his package
	SetPlayerCheckpoint(playerid, x, y, z, 3);
	// Set the job-fail-time for the global vehicle-timer
	APlayerData[playerid][VehicleTimerTime] = Job_TimeToFailMission;
	// Send the player a message to inform him that the mission has started

	return 1;
}
Vlw glr, +REP pra qm ajuda
Reply
#2

PHP код:
H:\CargaPesada\pawno\include\PPC_MissionsLixeiro.inc(78) : warning 204symbol is assigned a value that is never used"LoadMsgs"
H:\CargaPesada\pawno\include\PPC_MissionsPizza.inc(78) : warning 204symbol is assigned a value that is never used"LoadMsgs"[B][/B
LoadMsgs nгo esta sendo usado

baixe a include dnv e teste
Reply
#3

Quote:
Originally Posted by Whoo
Посмотреть сообщение
PHP код:
H:\CargaPesada\pawno\include\PPC_MissionsLixeiro.inc(78) : warning 204symbol is assigned a value that is never used"LoadMsgs"
H:\CargaPesada\pawno\include\PPC_MissionsPizza.inc(78) : warning 204symbol is assigned a value that is never used"LoadMsgs"[B][/B
LoadMsgs nгo esta sendo usado

baixe a include dnv e teste
Nгo Deu --'
Reply
#4

PHP код:
]H:\CargaPesada\pawno\include\DOF2.inc(1391) : warning 219local variable "a" shadows a variable at a preceding level
H
:\CargaPesada\pawno\include\DOF2.inc(1391) : warning 219local variable "b" shadows a variable at a preceding level
H
:\CargaPesada\pawno\include\PPC_MissionsLixeiro.inc(78) : warning 204symbol is assigned a value that is never used"LoadMsgs"
H:\CargaPesada\pawno\include\PPC_MissionsPizza.inc(78) : warning 204symbol is assigned a value that is never used"LoadMsgs"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Warnings

Bom os 2 primeiros erros, estб dizendo que tem vбriaveis igual a essa jб criada em algum local da GM ou include.
Por exemplo:
PHP код:
new a;
new 
b;
//Logo depois criamos de novo essa Variavel
new a;
new 
b
^^, assim ficara dando este erro, pois tem 2 variavйis com o mesmo nome.
Em fim, os 2 ultimos erros, estб dizendo que a "LoadMsgs" nгo estб sendo usada, Basta retirar a "LoadMsgs" das includes PPC_MissionLixeiro.inc e a PPC_MissionsPizza .
Reply
#5

Sla, tudo oque tentei nao deu, nem baixando todas as includes novamente, pedi a um amigo para me ajudar a retirar os erros, ele me passou as 3 includes novamente e me mandou por:
Код:
DOF2_Exit();
em baixo de
Код:
FixHouses();
vlw a todos que tentaram, to deixando as includes pra download:
Dof2: http://www.4shared.com/file/uz2dAmy1ba/DOF2.html?
PPC_MissionsLixeiro: http://www.4shared.com/file/O9Ku_BSU...sLixeiro.html?
PPC_MissionsPizza: http://www.4shared.com/file/wjLjeO5V...onsPizza.html?
Vlw glr
@Resolvido
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)