-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Version 3.0.0 inputtext limitation #7
Comments
You want to obtain the "inputtext" from the dialog right? The text from DIALOG_STYLE_INPUT? If so, the library isn't designed for that, only lists. Or do you mean getting the list items string? In that case it isn't that difficult as you mentioned it's already saved in the array. |
Only the selected item's text.
|
Oh well, it also returns the selected item inside inputtext? The more you know! Didn't know that! I'll look into this and will push an update soon :) |
I think it may be easier than I thought, for some reason I thought CallLocalFunction didn't support passing in strings. From the samp docs: forward publicFunc(number, Float:flt, const string[]);
public publicFunc(number, Float:flt, const string[])
{
printf("Received integer %i, float %f, string %s", number, flt, string);
return 1;
}
CallLocalFunction("publicFunc", "ifs", 420, 68.999999999, "Hello world"); Just pass in the inputtext variable with an I'll do that myself in a new PR to save you some time. |
I'm currently having an issue when I updated to the latest version, in which I need the inputtext string in the response function but I'm unable to obtain it, this is probably a limitation due to how callbacks work.
You're already storing all the info in arrays, so I suggest adding an API to pass in a buffer and get the text from the selected listitem, i cannot think however of an easy way of limiting its usage only within a positive response:
It is your call, but if there's actually a way to get the text, please let me know
The text was updated successfully, but these errors were encountered: