Dialogs aren't responding [WTF!]
#1

So, This is my /housemenu dialog.
pawn Код:
CMD:housemenu(playerid,params[])
{
    new var = GetPVarInt(playerid,"AdminLevel");
    if(pInfo[playerid][InHouseID] == -1) return SendClientMessage(playerid,COLOR_RED,"» You must be in an house in order to be able to use this command!");
    if(strcmp(GetName(playerid),HouseInfo[pInfo[playerid][InHouseID]][hOwner]) != 0 && var <= 3) return SendClientMessage(playerid,COLOR_RED,"» You do not own this house!");
    if(strcmp(GetName(playerid),HouseInfo[pInfo[playerid][InHouseID]][hOwner]) != 0 && var >= 4)
        SendClientMessage(playerid,COLOR_GREEN,"» Access authorized. You're viewing the menu as an administrator!");
    ShowPlayerDialog(playerid,HouseMenuDialog,DIALOG_STYLE_LIST,"Personal House Menu","Lock House\nUnlock House\nChange House Interior\nHouse Storage\nSell House\n","Select","Cancel");
    return 1;
}
When ever I click on a listitem, it doesn't respond. It just closes the dialog.
P.S. : I didn't use return 1 or return 0 for any dialogs. "Used 'return 1;' only at the end of the public.
This is making me mad.
Reply


Messages In This Thread
Dialogs aren't responding [WTF!] - by biker122 - 12.07.2014, 09:10
Re: Dialogs aren't responding [WTF!] - by Sojo12 - 12.07.2014, 09:28
Re: Dialogs aren't responding [WTF!] - by AIped - 12.07.2014, 09:30
Re: Dialogs aren't responding [WTF!] - by biker122 - 12.07.2014, 09:33

Forum Jump:


Users browsing this thread: 1 Guest(s)