DIALOG LIST HELP
#2

What issue you get lol?

I have just added returns so now you will not get unknown command message and I think for dropping you need to use != 1 rather than -= 1

pawn Код:
if(dialogid == BACKPACK1)
    {
        if(response)
        {
            if(listitem == 1)
            {
                if(PlayerInfo[playerid][pFishingRod] > 0)
                {
                    SendClientMessage(playerid, COLOR_WHITE, "INFO: You need to use /fish command");
                return 1;
                                }
                else
                {
                    SendClientMessage(playerid, COLOR_WHITE, "INFO: You do not have any nets to use");
                                    return 1;
                }
            }
            if(listitem == 2)
            {
                if(PlayerInfo[playerid][pFishingNet] > 0)
                {
                    CreateDroppableItem(playerid);
                    PlayerInfo[playerid][pFishingNet] !=1;
                    SendClientMessage(playerid, COLOR_WHITE, "INFO: You have dropped a net onto the ground");
return 1;
                }
                else
                {
                    SendClientMessage(playerid, COLOR_WHITE, "INFO: You do not have any nets to drop");
return 1;              
}
            }
        }
    }
Reply


Messages In This Thread
DIALOG LIST HELP - by Slaykler - 24.04.2013, 04:10
Re: DIALOG LIST HELP - by Goldilox - 24.04.2013, 04:18
AW: DIALOG LIST HELP - by [AK]Nazgul - 24.04.2013, 04:27
Re: DIALOG LIST HELP - by Unte99 - 24.04.2013, 04:44
Re: DIALOG LIST HELP - by Slaykler - 24.04.2013, 09:27

Forum Jump:


Users browsing this thread: 1 Guest(s)