My filterscript and OnDialogResponse
#2

Try:
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == DIALOG_HOUSE && response)
    {
        new i = GetPVarInt(playerid, "at_house");
        switch(listitem)
        {
            case 0:
            {
                SetPVarInt(playerid, "money", GetPVarInt(playerid, "money") - HouseInfo[i][Value]);
                GivePlayerMoney(playerid, -HouseInfo[i][Value]);
               
                SendMessage(playerid, COLOUR_GREEN, "You've bought {FFFFFF}%s {5ADE8B}for {FFFFFF}$%i{5ADE8B}!", HouseInfo[i][Name], HouseInfo[i][Value]);
            }
        }
       
        return 1;
    }
   
    return 0;//In all your scripts.
}
Reply


Messages In This Thread
My filterscript and OnDialogResponse - by Incognation - 02.05.2011, 14:46
Re: My filterscript and OnDialogResponse - by Stigg - 02.05.2011, 14:56
Re: My filterscript and OnDialogResponse - by Incognation - 02.05.2011, 15:52
Re: My filterscript and OnDialogResponse - by Joe Staff - 02.05.2011, 16:05
Re: My filterscript and OnDialogResponse - by Incognation - 02.05.2011, 16:23
Re: My filterscript and OnDialogResponse - by Incognation - 03.05.2011, 11:47
Re: My filterscript and OnDialogResponse - by Calgon - 03.05.2011, 11:48
Re: My filterscript and OnDialogResponse - by Incognation - 03.05.2011, 11:51

Forum Jump:


Users browsing this thread: 1 Guest(s)