02.05.2011, 14:46
Hello,
I have a filterscript called "house".
I can use every callback, but I can't use OnDialogResponse.
All of the returns are "return 1;".
How can I fix it?
Some code:
Greetz,
Incognation.
I have a filterscript called "house".
I can use every callback, but I can't use OnDialogResponse.
All of the returns are "return 1;".
How can I fix it?
Some code:
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 1;
}
Incognation.