SA-MP Forums Archive
Dialog Problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Dialog Problem (/showthread.php?tid=346692)



Dialog Problem - 3RoR - 29.05.2012

why when y type
pawn Код:
if(response)
{
//code
}
it's work for the Dialog key 1
and when y type
pawn Код:
if(!response)
{
//code
}
isn't working why ? the key 2


Re: Dialog Problem - 3RoR - 29.05.2012

isn't working that :@


Re: Dialog Problem - FalconX - 29.05.2012

Quote:
Originally Posted by 3RoR
Посмотреть сообщение
isn't working that :@
Look,

pawn Код:
if(!response) // means that if he didn't response " ! means NO "
and

pawn Код:
if(response) // this means that he responded on the respective dialog
Hope you are not confused in these both xD
-FalconX


Re: Dialog Problem - 3RoR - 29.05.2012

how to create when the player clicks on the button 2 on DIALOG_STYLE_MSGBOX ??


Re: Dialog Problem - newbienoob - 29.05.2012

pawn Код:
if(response) // When someone press the first button
if(!response) // When someone press the second button



Re: Dialog Problem - FalconX - 29.05.2012

Quote:
Originally Posted by 3RoR
Посмотреть сообщение
how to create when the player clicks on the button 2 on DIALOG_STYLE_MSGBOX ??
pawn Код:
if(response) // BUTTON 1
{
    //code
}
else // BUTTON 2
{
    //code
}
this ?
-FalconX


Re: Dialog Problem - 3RoR - 29.05.2012

ISN'T WORKING ANYWAY :@


Re: Dialog Problem - FalconX - 29.05.2012

Quote:
Originally Posted by n00b_scripter
Посмотреть сообщение
well pm me the code and i will persnoally see whats the problem is and fix it for free
You yourself ask people for help xD