#CroSs Posted May 28, 2015 Share Posted May 28, 2015 (edited) عندي مشكلة في المود ، المود هو يظهر رسالة لما يشتغل من ملف xml بس لما تظهر الرسالة مرة وحدة تختفي مرة ثانية ابيها ما تختفي كيف اسويها الكودات : ClientSide addEvent("node", true) addEventHandler("node", root, function(node) dxDrawText("Message : "..node.."", 17, 189, 763, 220, tocolor(255, 255, 255, 255), 1, "default-bold", "left", "top", false, false, true, false, false) end ) ServerSide addEventHandler ( "onResourceStart", root, function() local load = xmlLoadFile ("save.xml") if not load then return end local texte5 = xmlFindChild (load, "texte5", 0) if not texte5 then return end local node = xmlNodeGetValue ( texte5 ) triggerClientEvent ( root, "node", root, node ) xmlUnloadFile (load) end ) Edited May 28, 2015 by Guest Link to comment
shwaeki Posted May 28, 2015 Share Posted May 28, 2015 كلنت local node = "" addEvent("node", true) addEventHandler("node", root, function(Message) node = Message end) function Render() dxDrawText("Message : "..node.."", 17, 189, 763, 220, tocolor(255, 255, 255, 255), 1, "default-bold", "left", "top", false, false, true, false, false) end addEventHandler("onClientRender", root,Render) addEventHandler ( "onClientResourceStart", root, function() triggerServerEvent ( "start", localPlayer ) end) Link to comment
#CroSs Posted May 28, 2015 Author Share Posted May 28, 2015 local node = "" addEvent("node", true) addEventHandler("node", root, function(Message) node = Message end) الكود تمام بس ليه حطيت local node = "" و node = Message Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now