OnDialogResponse problem
#1

Hi, i recently came across to some problem regarding dialogs.

For example, i'm using fdialog system, and there fore some bugs appeared.

Let's say you call command to sell something, and other player is offered to accept or deny via dialog BOX.


the part of code with (response) { CODE } WORKS. however the part with (!response) { } DOESN'T WORK AT ALL, not even if i printf/debug.

if(response)
{
CODE FOR SELLING IF HE PRESS ACCEPT (WORKS)
}

if(!response)
{
CODE FOR SELLING IF HE PRESS DENY(DOESN't CALL at all)
}

Please help.. Its fdialog system.. i tryed every single option.. even swapped positions of responses, tryed else if, maybe wrong coordination..
Reply
#2

PHP код:
if(response)
{
CODE FOR SELLING IF HE PRESS ACCEPT 
}

else
{
CODE FOR SELLING IF HE PRESS DENY

That should work !!
Reply
#3

Quote:
Originally Posted by GTLS
Посмотреть сообщение
PHP код:
if(response)
{
CODE FOR SELLING IF HE PRESS ACCEPT 
}
else
{
CODE FOR SELLING IF HE PRESS DENY

That should work !!
Yeah i tryed that also, won't work for some wierd reason...
Reply
#4

That should work.. because there cant be any other issue.. are you sure you added 2 buttons in ShowPlayerDialog? check it out and also make sure you are using correct Dialog ID...i mean 2 IDs collide with each other thats why it is not working..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)