Help to FIX a warning 225: unreachable code
#1

my code have a
Код:
warning 225: unreachable code
can you help me to fix this
line of this warning
Код:
if(dialogid == DIALOG_REFUND)
	{
	    if(response)
	    {
	    if(listitem == 0)
	    {
			if(PlayerInfo[playerid][pCoin] >= 0)
			{
				SendClientMessage(playerid , COLOR_WHITE,"Ban da duoc Refund Vip Gold 3days + 10tokens");
	    		PlayerInfo[playerid][pDonateRank] = 3;
    			PlayerInfo[playerid][pTokens] = 10;
	    		PlayerInfo[playerid][pVIPExpire] = gettime()+259200*1;
			}
			else
			{
			SendClientMessage(playerid,COLOR_GREY,"ERROR : ban khong du Coin ");
			}
		}
		if(listitem == 1)
		{
		    if(PlayerInfo[playerid][pCoin] >= 0)
			{
			    SendClientMessage(playerid,  COLOR_WHITE,"Ban da duoc Refund Vip Bac 15days + 12 Tokens");
  			  PlayerInfo[playerid][pDonateRank] = 1;
	    		PlayerInfo[playerid][pTokens] = 12;
		    	PlayerInfo[playerid][pVIPExpire] = gettime()+1296000*1;
			}
			else
			{
			SendClientMessage(playerid,COLOR_GREY,"ERROR : ban khong du Coin ");
			}
		}
 		if(listitem == 2)
		{
		    if(PlayerInfo[playerid][pCoin] >= 0)
			{
			    SendClientMessage(playerid,  COLOR_WHITE,"Ban da duoc Refund 500,000$");
			    GivePlayerCash(playerid, 500000);
			}
			else
			{
			SendClientMessage(playerid,COLOR_GREY,"ERROR : ban khong du Coin ");
			}
		}
 		if(listitem == 3)
		{
		    if(PlayerInfo[playerid][pCoin] >= 0)
			{
   				SendClientMessage(playerid,  COLOR_WHITE,"Ban da duoc Refund Cap 2");
			    PlayerInfo[playerid][pLevel] = 2;
			}
			else
			{
			SendClientMessage(playerid,COLOR_GREY,"ERROR : ban khong du Coin ");
				}
			}
		}
		return 1;
	}
Reply


Messages In This Thread
Help to FIX a warning 225: unreachable code - by huydollar - 01.07.2014, 13:39
Re: Help to FIX a warning 225: unreachable code - by HyDrAtIc - 01.07.2014, 13:44
Re: Help to FIX a warning 225: unreachable code - by Vince - 01.07.2014, 14:51

Forum Jump:


Users browsing this thread: 1 Guest(s)