[Ajuda] warning 204: symbol is assigned a value that is never used: "TotalMafiaStartLocList"
#1

Alguйm pode me ajudar neste warning?

Cуdigo todo:

PHP Code:
Dialog_MafiaSelectLoad(playeridresponse)
{
    
// Setup local variables
    
new TotalMafiaStartLocList[1000], ProductList[50], NumProducts;
    
// Just close the dialog if the player clicked "Cancel"
    
if(!response) return 1;
    
// First get the list of products again, so we can retrieve the selected load from it
    
switch (GetVehicleModel(GetPlayerVehicleID(playerid))) // Check the vehicle-model of the player
    
{
        case 
VehicleSandKingVehicleMoonbeam// If the player's vehicle is a "Flatbed" or "DFT-30"
            
ProductList Product_GetList(PCV_MafiaVanNumProducts); // Build a list of products defined for truckers without a trailer
            
}
    }
    
// Store the selected LoadID in the player's account
    
APlayerData[playerid][LoadID] = ProductList[listitem];
    
ProductID APlayerData[playerid][LoadID];
    
// Build a list of start-locations for this product
    
for (new i30i++)
    {
        
// Get the location-id
        
LocID ALoads[ProductID][FromLocations][i];
        
// Check if it a valid location-id (not 0)
        
if (LocID != 0)
            
format(TotalMafiaStartLocList1000"%s%s\n"TotalMafiaStartLocListALocations[LocID][LocationName]); // Add the location-name to the list
        
else
            break; 
// As soon as an invalid location-id has been found, stop adding entries to the location-list
    
}
    
// Ask the player to choose a start-location
    
ShowPlayerDialog(playeridDialogMafiaStartLocDIALOG_STYLE_LISTTXT_MafiaDialogSelectStartLocTotalMafiaStartLocListTXT_DialogButtonSelectTXT_DialogButtonCancel); // Let the player choose a starting location
    
return 1;

Linha:
PHP Code:
new TotalMafiaStartLocList[1000], ProductList[50], NumProducts
Reply
#2

coloca assim

pawn Code:
new ProductList[50], NumProducts;
significa que nunca esta sendo usado
Reply
#3

Obrigado.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)