Jump to content

xml problem


Wei

Recommended Posts

Posted (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 by Guest

Diet with russian vodka, lose 3 days in one week !

Posted

Post your XML content.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

<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 !

Posted

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.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

PM me your complete script.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

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 !

Posted

In "Settings -> Interface" I set the "MTA Blue ( default )".

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
In "Settings -> Interface" I set the "MTA Blue ( default )".

thanks

Diet with russian vodka, lose 3 days in one week !

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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