1. GUI elements such as radio buttons or checkboxes do not respond to onClientGUIClick for "resourceRoot" - each radio button must be connected to a separate addEventHandler specifying the name of the radio it is assigned to.
Ultimately, the MTA used "resourceRoot" to catch "all" GUI elements, and inside a simple exclusion condition was used:
if getElementType(source)~="gui-radiobutton" then return end
Thanks to this, one function and one event supported all radio buttons in a given resource.
2. When we have chat or console running, the character can crouch/jump, which is annoying.
3. It would be good if there was an option to "remember" the password entered into the server so that you do not have to enter it every time
4. The console does not display all errors in the scripts - unfortunately, I do not know every category that is not displayed, but certainly a reference to a non-existent export (call) is not displayed as an error in the console, while other errors - they do not display a specific line or function number in the file in question (I had an error that there is a bad argument 2 in the addEventHandler function - but it did not say in which specific function and I had over 10 of them and it is a guess where the error is rather than a real hint).
5. dbPoll doesn't work - I can't download anything from the database with my own script or the one from the wiki - dbPoll always returns either nil or false, whatever I entered and in what configuration. Additionally, it seems to me that the example on the wiki is poorly constructed because it does not even pass the first condition of this function.
I don't write in English because I don't know it.
Ultimately, the MTA used "resourceRoot" to catch "all" GUI elements, and inside a simple exclusion condition was used:
if getElementType(source)~="gui-radiobutton" then return end
Thanks to this, one function and one event supported all radio buttons in a given resource.
2. When we have chat or console running, the character can crouch/jump, which is annoying.
3. It would be good if there was an option to "remember" the password entered into the server so that you do not have to enter it every time
4. The console does not display all errors in the scripts - unfortunately, I do not know every category that is not displayed, but certainly a reference to a non-existent export (call) is not displayed as an error in the console, while other errors - they do not display a specific line or function number in the file in question (I had an error that there is a bad argument 2 in the addEventHandler function - but it did not say in which specific function and I had over 10 of them and it is a guess where the error is rather than a real hint).
5. dbPoll doesn't work - I can't download anything from the database with my own script or the one from the wiki - dbPoll always returns either nil or false, whatever I entered and in what configuration. Additionally, it seems to me that the example on the wiki is poorly constructed because it does not even pass the first condition of this function.
I don't write in English because I don't know it.
1. Elementy GUI typu radio button czy checkboxy nie reagują na onClientGUIClick dla "resourceRoot" - każdy przycisk typu radio trzeba podpinać pod osobny addEventHandler wypisując "imiennie" do którego radia jest przypisany.
Docelowo w MTA stosowano "resourceRoot" aby łapał "wszystkie" elementy GUI, a w środku stosowano prosty warunek wykluczający na zasadzie:
if getElementType(source)~="gui-radiobutton" then return end
Dzięki czemu jedna funkcja i jedno zdarzenie obsługiwało wszystkie przyciski typu radio w danym zasobie.
2. Gdy mamy uruchomiony czat lub konsolę to da się postacią kucać / skakać co jest uciążliwe.
3. Dobrze gdyby istniała opcja "zapamiętania" hasła wpisywanego do serwera tak aby nie trzeba było za każdym razem go podawać
4. Konsola nie wyświetla wszystkich błędów w skryptach - niestety nie znam każdej kategorii która się nie wyświetla, ale na pewno odwołanie do nieistniejącego exportu (call) nie jest wyświetlane jako błąd w konsoli, natomiast pozostałe błędy - nie wyświetlają konkretnej linii czy numeru funkcji w pliku którego to dotyczy (miałem błąd o tym, że jest zły argument 2 w funkcji addEventHandler - ale nie pisało w której konkretnie funkcji a miałem ich ponad 10 i to jest zgadywanie gdzie jest błąd niż realna podpowiedź).
5. dbPoll nie działa - nie jestem w stanie ani własnym skryptem ani "tym z wiki" pobrać czegokolwiek z bazy - dbPoll zawsze zwraca albo nil albo false czego bym nie wpisał i w jakiej konfiguracji. Dodatkowo wydaje mi się, że przykład na wiki jest sam w sobie źle skonstruowany bo nawet nie przechodzi przez pierwszy warunek tej funkcji.
Nie piszę po angielsku bo nie umiem.
Docelowo w MTA stosowano "resourceRoot" aby łapał "wszystkie" elementy GUI, a w środku stosowano prosty warunek wykluczający na zasadzie:
if getElementType(source)~="gui-radiobutton" then return end
Dzięki czemu jedna funkcja i jedno zdarzenie obsługiwało wszystkie przyciski typu radio w danym zasobie.
2. Gdy mamy uruchomiony czat lub konsolę to da się postacią kucać / skakać co jest uciążliwe.
3. Dobrze gdyby istniała opcja "zapamiętania" hasła wpisywanego do serwera tak aby nie trzeba było za każdym razem go podawać
4. Konsola nie wyświetla wszystkich błędów w skryptach - niestety nie znam każdej kategorii która się nie wyświetla, ale na pewno odwołanie do nieistniejącego exportu (call) nie jest wyświetlane jako błąd w konsoli, natomiast pozostałe błędy - nie wyświetlają konkretnej linii czy numeru funkcji w pliku którego to dotyczy (miałem błąd o tym, że jest zły argument 2 w funkcji addEventHandler - ale nie pisało w której konkretnie funkcji a miałem ich ponad 10 i to jest zgadywanie gdzie jest błąd niż realna podpowiedź).
5. dbPoll nie działa - nie jestem w stanie ani własnym skryptem ani "tym z wiki" pobrać czegokolwiek z bazy - dbPoll zawsze zwraca albo nil albo false czego bym nie wpisał i w jakiej konfiguracji. Dodatkowo wydaje mi się, że przykład na wiki jest sam w sobie źle skonstruowany bo nawet nie przechodzi przez pierwszy warunek tej funkcji.
Nie piszę po angielsku bo nie umiem.