[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


Messages In This Thread
Warnings - by matheusspohr - 12.03.2015, 02:43
Re: Warnings - by Whoo - 12.03.2015, 02:50
Re: Warnings - by matheusspohr - 12.03.2015, 03:00
Re: Warnings - by #Luca[S]. - 12.03.2015, 09:22
Re: Warnings - by matheusspohr - 12.03.2015, 15:36

Forum Jump:


Users browsing this thread: 1 Guest(s)