Jump to content

xmlLoadFile doesn't work in Client Side


Piorun

Recommended Posts

Posted

o_O...

If it's only server-side the wiki must be fixed...

Client

xmlnode xmlLoadFile ( string filePath )

Required Arguments

filePath: The filepath of the file in the following format: ":resourceName/path". 'resourceName' is the name of the resource the file is in, and 'path' is the path from the root directory of the resource to the file.

For example, if there is a file named 'settings.xml' in the resource 'ctf', it can be accessed from another resource this way: xmlLoadFile(":ctf/settings.xml").

If the file is in the current resource, only the file path is necessary, e.g. xmlLoadFile("settings.xml").

Paid developer. Twitter: @willia_am -

http://www.williamdasilva.fr
Posted (edited)

its working you joke whit only Server Side? i have Autologin on XML base

Edited by Guest

Ingame Name : |DGT|Puma

DGT Clan Server 24/7 Owner/Scripter

MultiGameMode in progress :

n-560x95_FFFFFF_FFFFFF_0283C4_000000.png

Posted

omg man on a client side script the client download the xml file from server and then every client can edit that file ...

Ingame Name : |DGT|Puma

DGT Clan Server 24/7 Owner/Scripter

MultiGameMode in progress :

n-560x95_FFFFFF_FFFFFF_0283C4_000000.png

Posted

xml, file functions client side will look in the resource client side, the one you downloaded.

MTA San Andreas 1.1.1\mods\deathmatch\resources

xmlLoadFile ( ":resource/config.xml" )

Will look for config.xml in:

MTA San Andreas 1.1.1\mods\deathmatch\resources\resource\config.xml

The reason it didn't work in the first place, because the config.xml wasn't client side, when you specified it in the meta.xml, the client downloads it.

Business System viewtopic.php?f=108&t=35797

Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726

SQLite Tutorial viewtopic.php?f=148&t=38203

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