HEPPI Posted March 10, 2022 Share Posted March 10, 2022 function addUpdate ( player, date, update, author ) local accnt = getAccountName ( getPlayerAccount ( player ) ) dbExec ( dbc, "INSERT INTO Updates ( Date_, Name, Developer, AddedBy ) VALUES ( ?, ?, ?, ? )", date, update, author, accnt ) --outputRoot ( "Szerver fejlesztések: "..getPlayerName ( player ).." hozzáadott egy új changelog-ot.", false ) call(getResourceFromName("msgbox"),"guiShowMessageBox","TEST TEST TEST ","info") outputChatBox ( "Egy új changelog lett hozzáadva " ..author.. " által. /changelog", root, 0, 243, 246 ) -- playSound("files/bip.mp3") end Debug : Failed to call msgbox:guiShowMessageBox. Its the default msg box on every mta serv Link to comment
Moderators Citizen Posted March 10, 2022 Moderators Share Posted March 10, 2022 7 hours ago, HEPPI said: Debug : Failed to call msgbox:guiShowMessageBox. Is that the entire message ? can you screenshot the error maybe ? Make sure you have the "msgbox" resource and that it is running (start msgbox) before calling exported functions. Link to comment
HEPPI Posted March 13, 2022 Author Share Posted March 13, 2022 (edited) On 11/03/2022 at 00:48, Citizen said: Is that the entire message ? can you screenshot the error maybe ? Make sure you have the "msgbox" resource and that it is running (start msgbox) before calling exported functions. Imgur: The magic of the Internet Msgbox is started. Edited March 13, 2022 by HEPPI Link to comment
βurak Posted March 13, 2022 Share Posted March 13, 2022 (edited) Are the function parameters correct? Is the function you called defined as exports in meta.xml? Are the function you call and the file you run the script on the same side? Edited March 13, 2022 by Burak5312 Link to comment
HEPPI Posted March 13, 2022 Author Share Posted March 13, 2022 I managed to fix it, i had a bad argument in the client file. Thank for the help anyway. 1 Link to comment
βurak Posted March 13, 2022 Share Posted March 13, 2022 (edited) You're welcome. Please open a new topic if you have any other questions, I'll help you as best I can. Edited March 13, 2022 by Burak5312 1 Link to comment
Administrators Tut Posted March 13, 2022 Administrators Share Posted March 13, 2022 Closing this as issue has been resolved Link to comment
Recommended Posts