Jump to content

change Folder


Recommended Posts

hey i have a problem

in my script, i open files in a folder like:

file = xmlLoadFile( "cars/car"..id..".xml")

the folder is where the script lie

the script lies in MTA/SERVER/MODS/DEATHMATCH/RESOURCE/MYFOLDER

and the Folder : MTA/SERVER/MODS/DEATHMATCH/RESOURCE/MYFOLDER/CARS

omg xD

so in an another script i have written, lie in myfolder. the Code:

file = xmlLoadFile( ../myfoldertwo/Cars/car"..id..".xml")

so also the script have to change the folder to find the file ind myfoldertwo, but this does not go.

i need a little bit help :(

Link to comment

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