if(dialogid == number) Not working?
#1

pawn Код:
CMD:walkstyle(playerid, params[])
{
    if(PlayerInfo[playerid][pDonateRank] > 3)
    {
        ShowPlayerDialog(playerid, 66886, DIALOG_STYLE_LIST, "Walking Style", "Pedestrian\nGangster\nGangster II\nOld\nFat and Old\nFat\nLady\nLady II\nLady III\nLady IV\nDrunk\nBlind\nRemove current walk","OK","Cancel");
        return 1;
    }
    else
    {
        ShowPlayerDialog(playerid, 66887, DIALOG_STYLE_LIST, "Walking Style", "Pedestrian\nGangster\nOld\nLady\nLady II\nRemove current walk","OK","Cancel");
        return 1;
    }
}
pawn Код:
if(dialogid == 66886)
    {
        if(response)
        {
            if(listitem >= 0 && listitem < 13)
            {
                SetPlayerWalkingStyle(playerid, listitem+2);
                SendClientMessage(playerid, COLOR_WHITE, "You have successfully changed your walking style.");
                SaveWS(playerid);
            }
            else if(listitem == 13)
            {
                SetPlayerWalkingStyle(playerid, 3);
                SendClientMessage(playerid, COLOR_WHITE, "You have removed your current walking style.");
                SaveWS(playerid);
            }
            SendClientMessage(playerid, COLOR_WHITE, "BUG #1.");
        }
        SendClientMessage(playerid, COLOR_WHITE, "BUG #3.");
    }
    SendClientMessage(playerid, COLOR_WHITE, "BUG #2.");
It doesn't continue off the if line, as it does not read the rest of the script that's placed inside it, everytime I use the dialog it says "BUG #2.", as I have placed it.
Reply


Messages In This Thread
if(dialogid == number) Not working? - by maramizo - 26.07.2012, 18:18
Re: if(dialogid == number) Not working? - by FireCat - 26.07.2012, 18:21
Re: if(dialogid == number) Not working? - by maramizo - 26.07.2012, 18:23
Re: if(dialogid == number) Not working? - by [KHK]Khalid - 26.07.2012, 18:38
Re: if(dialogid == number) Not working? - by Vince - 26.07.2012, 18:42
Re: if(dialogid == number) Not working? - by maramizo - 26.07.2012, 19:22

Forum Jump:


Users browsing this thread: 2 Guest(s)