Jump to content

client side xml


Castillo

Recommended Posts

Posted

hi, i've got a problem loading data from a xml file to a grid list, dunno why the xml xml won't load but in server side it does... here is my loading code part.

function populateGridlist() 
    local rootnode = xmlLoadFile("phones/locationsPhones.xml") 
    if rootnode then 
        for _,group in ipairs(xmlNodeGetChildren(rootnode)) do 
            local row = guiGridListAddRow(listPlaces) 
            local name = xmlNodeGetAttribute(group,"name") 
            guiGridListSetItemText ( listPlaces, row, 1, name, false, false ) 
            outputDebugString("working") 
        end 
        xmlUnloadFile(rootnode) 
    end 
end 

thanks in advance.

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

and meta.xml is?

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted
and meta.xml is?

    <config src="phones/locationsPhones.xml"/>       

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

use

<file src="phones/locationPhones.xml" /> 

config is for server-side

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted
use

<file src="phones/locationPhones.xml" /> 

config is for server-side

Thank you varez, its working :)

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.

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