27.06.2018, 20:42
The style is used for dialog SEC_ANSWER is DIALOG_STYLE_INPUT. When the style is not a list but rather an input, listitem will be -1.
The line causes the run time error is: https://github.com/Agneese-Saini/SA-...mysql.pwn#L470
Seems like it stores the index here (https://github.com/Agneese-Saini/SA-...mysql.pwn#L774)
so you use retrieve and use it in the array instead.
The line causes the run time error is: https://github.com/Agneese-Saini/SA-...mysql.pwn#L470
Seems like it stores the index here (https://github.com/Agneese-Saini/SA-...mysql.pwn#L774)
pawn Code:
SetPVarInt(playerid, "Question", listitem);