Unreachable code
#1

Код:
(491) : warning 225: unreachable code
PHP код:
if(dialogid == VIPMENU//LINE 419
    
{
        if(
response
        {
            
            if(
listitem == 0// Health
            
{
               if(
PlayerData[playerid][Level] >= 1)
                    {
                    
SetPlayerHealth(playerid,100);
                 }
            }
            if(
listitem == 1// Armour
            
{
               if(
PlayerData[playerid][Level] >= 1)
                    {
                   
SetPlayerArmour(playerid,100);
                 }
            }
            if(
listitem == 2// Weaponry
            
{
               if(
PlayerData[playerid][Level] >= 1)
              {
                
GivePlayerWeapon(playerid4,1);
                
GivePlayerWeapon(playerid24,8000);
                
GivePlayerWeapon(playerid26,8000);
                
GivePlayerWeapon(playerid32,8000);
                
GivePlayerWeapon(playerid34,8000); 
              }
            }
            if(
listitem == 3// Nos
            
{
               if(
PlayerData[playerid][Level] >= 1)
               {
                
AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
               }
            }
            if(
listitem == 1// Vehicle HP
            
{
               if(
PlayerData[playerid][Level] >= 1)
                    {
                   new 
vehicleid GetPlayerVehicleID(playerid);
                   
SetVehicleHealth(vehicleid1000.0);
                 }
            }
        }
        return 
1// We handled a dialog, so return 1. Just like OnPlayerCommandText.
    
}
    return 
1;

Any idea?Thanks in advance!
Reply


Messages In This Thread
Unreachable code - by geohareas - 04.02.2013, 11:23
Re: Unreachable code - by DiGiTaL_AnGeL - 04.02.2013, 11:53
Re: Unreachable code - by geohareas - 04.02.2013, 11:58
Re: Unreachable code - by LarzI - 04.02.2013, 12:00
Re: Unreachable code - by geohareas - 04.02.2013, 12:21
Re: Unreachable code - by LarzI - 04.02.2013, 12:25
Re: Unreachable code - by geohareas - 04.02.2013, 12:35
Re: Unreachable code - by LarzI - 04.02.2013, 13:31
Re: Unreachable code - by MP2 - 04.02.2013, 13:55

Forum Jump:


Users browsing this thread: 1 Guest(s)