Wei Posted May 21, 2012 Posted May 21, 2012 (edited) I'm making a help panel local xml = xmlLoadFile( "staff.xml" ) local staff = xmlNodeGetValue( xml ) elseif ( source == butVIP ) then guiSetText( helpMem, VIP ) BadArgument @ guiSetText [expected string] if I add tostring VIP it returns false Edited May 21, 2012 by Guest Diet with russian vodka, lose 3 days in one week !
Castillo Posted May 21, 2012 Posted May 21, 2012 Post your XML content. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Wei Posted May 21, 2012 Author Posted May 21, 2012 <VIP> VIP </VIP> Ive made a mistake local xml3 = xmlLoadFile( "VIP.xml" ) local VIP = xmlNodeGetValue( xml3 ) Diet with russian vodka, lose 3 days in one week !
Castillo Posted May 21, 2012 Posted May 21, 2012 Here it worked, are you sure that you added in the meta.xml this: "VIP.xml" type="client" /> San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Wei Posted May 21, 2012 Author Posted May 21, 2012 I've got config and replaced with file and its the same Diet with russian vodka, lose 3 days in one week !
Castillo Posted May 21, 2012 Posted May 21, 2012 PM me your complete script. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Jaysds1 Posted May 21, 2012 Posted May 21, 2012 Try using: xmlNodeGetChildren My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
Castillo Posted May 21, 2012 Posted May 21, 2012 @Blazy: This is the screenshot: http://i.imgur.com/88hD2.jpg It works fine here, are you sure that your XML path is right? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Wei Posted May 21, 2012 Author Posted May 21, 2012 Yeah It was that i had it in the xml folder. In the meta I added it but in the code i forgot. Can I ask you how did you make that blue chatbox ? Diet with russian vodka, lose 3 days in one week !
Castillo Posted May 21, 2012 Posted May 21, 2012 In "Settings -> Interface" I set the "MTA Blue ( default )". San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Wei Posted May 21, 2012 Author Posted May 21, 2012 In "Settings -> Interface" I set the "MTA Blue ( default )". thanks Diet with russian vodka, lose 3 days in one week !
Castillo Posted May 21, 2012 Posted May 21, 2012 You're welcome. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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