24.04.2013, 04:18
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
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;
}
}
}
}

