Guest Posted January 7, 2008 Posted January 7, 2008 (edited) Hi, My script: function changeveh(player, commandname) outputChatBox ( "Car: Bullet" ) txd = engineLoadTXD("data/bullet.txd") engineImportTXD(txd, 541) dff = engineLoadDFF("data/bullet.dff") engineReplaceModel(dff, 541) end function ionPlayerJoin () outputChatBox ( "New Models by DarkItachiPL" ) end gamemode_root = getRootElement() addCommandHandler ( "changeveh", changeveh ) My meta.xml: <meta> <info author="None" type="script" version="1.0" /> <script src="auto.lua" /> <file src="data/bullet.dff" /> <file src="data/bullet.txd" /> </meta> My error: [22:09:15] Starting auto [22:09:15] All Seeing Eye listing enabled. Port 22127 (UDP) must be accessible from the internet [22:09:47] CONNECT: DarkItachiPL connected (IP: 192.168.2.9) [22:09:53] JOIN: DarkItachiPL joined the game (IP: 192.168.2.9) [22:10:00] Map vote started by DarkItachiPL. [22:10:09] DarkItachiPL voted 3 (as-dam) [22:10:09] Vote ended! [as-dam] [22:10:09] Starting assault [22:10:09] start: Resource 'assault' started [22:10:09] Gamemode 'Assault' started. [22:10:09] Starting as-dam [22:10:09] start: Resource 'as-dam' started [22:10:09] Map 'as-dam' started. [22:10:21] WARNING: tele.lua: Bad argument @ 'destroyElement' - Line: 31 [22:10:25] WARNING: tele.lua: Bad argument @ 'destroyElement' - Line: 38 [b][22:11:21] ERROR: ...y/MTA DM/mods/deathmatch/resourcecache/auto/auto.lua:3: attempt to call global 'engineLoadTXD'[/b] Please, help me... Edited January 7, 2008 by Guest
[email protected] Posted January 7, 2008 Posted January 7, 2008 your lua script file... is that "auto.lua" or "car.lua"? Seems a bit cunfusing looking at the error and your meta file, if the lua scriptfile is indeed the one shown in your posted meta-file, then you are probably looking in the wrong lua file
Guest Posted January 7, 2008 Posted January 7, 2008 Sry.... Script name is auto.lua I'm change one post
Nissandrifter Posted January 7, 2008 Posted January 7, 2008 that script is supposed to be a client script if it is loading models, so should be
Guest Posted January 7, 2008 Posted January 7, 2008 Ehh... My new error log: [23:13:34] Starting auto [23:13:34] All Seeing Eye listing enabled. Port 22127 (UDP) must be accessible from the internet [23:14:04] CONNECT: DarkItachiPL connected (IP: 192.168.2.9) [23:14:10] JOIN: DarkItachiPL joined the game (IP: 192.168.2.9) [23:14:21] Map vote started by DarkItachiPL. [23:14:23] DarkItachiPL voted 3 (Desert) [23:14:23] Vote ended! [Desert] [23:14:23] Starting interstate69 [23:14:23] Starting i69-vehicles [23:14:23] start: Resource 'interstate69' started [23:14:23] Gamemode 'Interstate 69' started. [23:14:23] Starting i69DM-de [23:14:23] start: Resource 'i69DM-de' started [23:14:23] Map 'Desert' started. [23:14:23] ERROR: fileOpen; unable to load file [23:14:23] ERROR: fileOpen; unable to load file
Guest Posted January 7, 2008 Posted January 7, 2008 Please Help Me!! Please Please Please Please Please Please Please Please !!
KillFrenzy Posted January 8, 2008 Posted January 8, 2008 EngineLoadTXD is a client side function, not server side. You need to set the 'type' of the script to "client" in the meta.xml http://development.mtasa.com/index.php? ... ineLoadTXD <meta> <info author="None" type="script" version="1.0" /> <script src="auto.lua" type="client" /> <file src="data/bullet.dff" /> <file src="data/bullet.txd" /> </meta>
Guest Posted January 8, 2008 Posted January 8, 2008 that script is supposed to be a client script if it is loading models, so should be LoL.....
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