Matty Posted September 19, 2012 Share Posted September 19, 2012 (edited) Buenas........ Que es lo que estoy haciendo mal?: function reading () loadxml = xmlLoadFile ( "palabras.xml" ) if loadxml then findWords = xmlFindChild ( loadxml, "palabras", 0 ) readxml = xmlNodeGetValue ( findWords ) end end addEventHandler ( "onResourceStart", getRootElement(), reading ) function post () if readxml then outputChatBox ( tostring ( readxml ) ) end end addCommandHandler ( "testp", post ) No hay errores en el debug. EDIT: test1 test2 test3 test4 test5 Edited September 19, 2012 by Guest Link to comment
Renkon Posted September 19, 2012 Share Posted September 19, 2012 Este ejemplo, te ayuda. Yo lo hice asi https://wiki.multitheftauto.com/wiki/XmlNodeGetChildren Link to comment
Recommended Posts