Confirmation Dialog before sending report
#6

A dialog is a kind of asynchronous event; it doesn't block code that comes after it. So what you likely should should do is, if it is the first report, store the params in a variable. A PVar is a good choice for this because it'll only be used once. Then in OnDialogResponse, if they click Yes, fetch those params and execute the command again for that player with those params. Making sure that you alter the variable that stores whether it's the first report otherwise you'll get stuck in a loop.
Reply


Messages In This Thread
Confirmation Dialog before sending report - by DJ_Shocker - 17.01.2017, 00:37
Re: Confirmation Dialog before sending report - by Pearson - 17.01.2017, 02:35
Re: Confirmation Dialog before sending report - by BiosMarcel - 17.01.2017, 04:21
Re: Confirmation Dialog before sending report - by DJ_Shocker - 18.01.2017, 10:10
Re: Confirmation Dialog before sending report - by Logic_ - 18.01.2017, 10:16
Re: Confirmation Dialog before sending report - by Vince - 18.01.2017, 10:29

Forum Jump:


Users browsing this thread: 1 Guest(s)