Jump to content

Problem with calling a resource.


HEPPI

Recommended Posts

Posted
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
  • Moderators
Posted
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.

Posted (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 by HEPPI
Posted (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 by Burak5312
Posted (edited)

You're welcome. Please open a new topic if you have any other questions, I'll help you as best I can. ?

Edited by Burak5312
  • Thanks 1
  • Tut locked this topic
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...