MatXpl Posted December 4, 2010 Posted December 4, 2010 Hi! I have question. I in script get element id, x, y and z. And how i can save it in a map file ? MTA:SA scripts/gamemodes/misc: http://www.mtasa.xn.pl
Aibo Posted December 4, 2010 Posted December 4, 2010 by using XML fuctions: https://wiki.multitheftauto.com/wiki/XmlCreateFile ?
MatXpl Posted December 4, 2010 Author Posted December 4, 2010 ok thanks! I created file but how to put id, x, y and z from server-side script to file ? MTA:SA scripts/gamemodes/misc: http://www.mtasa.xn.pl
Castillo Posted December 4, 2010 Posted December 4, 2010 we don't know how is your code, you can make it via commands. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Aibo Posted December 4, 2010 Posted December 4, 2010 you should read about/look into map editor/map files, how objects are saved there. ?
Antibird Posted December 4, 2010 Posted December 4, 2010 https://wiki.multitheftauto.com/wiki/AddResourceMap + https://wiki.multitheftauto.com/wiki/SaveMapData might do what you're looking for.
MatXpl Posted December 4, 2010 Author Posted December 4, 2010 ok i save object in a map file: and how to create this object ? (load) MTA:SA scripts/gamemodes/misc: http://www.mtasa.xn.pl
Aibo Posted December 4, 2010 Posted December 4, 2010 ok i save object in a map file: and how to create this object ? (load) see post above yours by Antibird, those functions will be of more use to you i bet. ?
dzek (varez) Posted December 4, 2010 Posted December 4, 2010 probably with https://wiki.multitheftauto.com/wiki/LoadMapData ? there is "see also" under every page of wiki.. 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)!
MatXpl Posted December 5, 2010 Author Posted December 5, 2010 ok thanks 4 all, i create this script ;D MTA:SA scripts/gamemodes/misc: http://www.mtasa.xn.pl
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