29.12.2010, 19:31
Hi!
Anyone else noticed that pressing Cancel on INPUT_DIALOG causes server to crash?
Anyone else noticed that pressing Cancel on INPUT_DIALOG causes server to crash?
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
...
if(dialogid == 12345) // id of your showplayerdialog
{
....
if(response == 0) // response is 0 when option 2 is pressed. Assuming that cancel is your 'option two'
..
...
sh-3.2# samp03svr[7300]: segfault at 0000000000000000 rip 00000000f7cea308 rsp 00000000ffc257f0 error 4 |
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Input text!","Text:","Go","Cancel"); if(dialogid == 1) { if(response == 1) { format(... } else { //... } return true; } |