Jump to content

Problem with calling a resource.


HEPPI

Recommended Posts

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