29.05.2015, 01:58
Quote:
Sure thank you for bringing this up.
[19:41:16] [debug] #0 native CallLocalFunction () from samp-server.exe The only thing I did to fix it was make sure that it's not possible for listitem to be -1 and for the string length of inputtext to be less than 1 in the following code. I did this for both as I'm not sure whether a -1 would cause a server crash with a dialog response. PHP код:
|
There is no way those values can be negative with this include, my include only adds a new dailog style (DIALOG_STYLE_PREVMODEL), it does not modifies the other styles nor handles them.
Quote:
Yeah, it's a known bug that CallLocalFunction crash the server if the string passed as argument is NULL/empty. ZCMD is a good example of preventing this by passing "\1" instead.
|
Quote:
Script in my gamemode looks good. Before your include everything worked fine. Maybe when you create static textdraws they get new IDs from 0 again? So when I'm showing my speedometer textdraw, server shows 2 textdraws - speedometer's and dialog's, because they have the same ID?
|
Also, may i know which version are you using (dialogs or dialogs2)?
And i checked the hooking and all were done correctly.
Updated R5
- Added an additional check before calling OnDialogResponse for Prev Model dialogs. This may prevent crash.