Error with ShowPlayerDialog
#8

Quote:
Originally Posted by HellSphinX
View Post
What's the defination of BUYHOUSELOCK? Keep in mind that max dialog id is 32767 as you've been told before.
Yes. that was my mistake... Again.
BUT This is NOT fixed yet!
It loads the first BUYHOUSELOCK, but it doesnt load the second one:
pawn Code:
if(dialogid == BUYHOUSELOCK)
    {
        if(response)
        {
            if(GetPlayerMoney(playerid) < PHouseLock(listitem)) return SendClientMessage(playerid, COLOR_WHITE, "You do not have enough cash!");
            if(PlayerInfo[playerid][pPhousekey] != INVALID_HOUSE_ID && PlayerInfo[playerid][pPhousekey2] != INVALID_HOUSE_ID)
            {
                if(listitem == 0)
                {
                    ShowPlayerDialog(playerid, BUYHOUSELOCK2, DIALOG_STYLE_LIST, "Purchasing House Lock", "House slot 1\nHouse slot 2","Choose","Cancel");
                }
                else
                {
                    ShowPlayerDialog(playerid, BUYHOUSELOCK3, DIALOG_STYLE_LIST, "Purchasing House Lock", "House slot 1\nHouse slot 2","Choose","Cancel");
                }
            }
            else if(PlayerInfo[playerid][pPhousekey2] == INVALID_HOUSE_ID && PlayerInfo[playerid][pPhousekey] != INVALID_HOUSE_ID)
            {
                PlayerInfo[playerid][pHouseLock] = listitem+1;
                GivePlayerCash(playerid, -PHouseLock(listitem));
                return SendClientMessage(playerid, COLOR_WHITE, "You have purchased the lock successfully for your first house slot!");
            }
            else if(PlayerInfo[playerid][pPhousekey2] != INVALID_HOUSE_ID && PlayerInfo[playerid][pPhousekey] == INVALID_HOUSE_ID)
            {
                PlayerInfo[playerid][pHouseLock2] = listitem+1;
                GivePlayerCash(playerid, -PHouseLock(listitem));
                return SendClientMessage(playerid, COLOR_WHITE, "You have purchased the lock successfully for your first second slot!");
            }
            else return SendClientMessage(playerid, COLOR_WHITE, "You do not own a house.");
        }
    }
Error must be there..
Reply


Messages In This Thread
Error with ShowPlayerDialog - by maramizo - 26.07.2012, 22:57
Re: Error with ShowPlayerDialog - by MadafakaPro - 26.07.2012, 23:06
Re: Error with ShowPlayerDialog - by maramizo - 26.07.2012, 23:09
Re: Error with ShowPlayerDialog - by maramizo - 26.07.2012, 23:19
Re: Error with ShowPlayerDialog - by MP2 - 26.07.2012, 23:21
Re: Error with ShowPlayerDialog - by maramizo - 26.07.2012, 23:21
Re: Error with ShowPlayerDialog - by [KHK]Khalid - 26.07.2012, 23:22
Re: Error with ShowPlayerDialog - by maramizo - 26.07.2012, 23:37
Re: Error with ShowPlayerDialog - by [KHK]Khalid - 26.07.2012, 23:38

Forum Jump:


Users browsing this thread: 2 Guest(s)