Jump to content

Help with adding lua script to server.


niemi

Recommended Posts

Posted

i added that ion.lua on server\mods\deathmatch\resources\ion.rar I dont know why all the resources are rar, but in resourcecache is all same files but there are not rar files, its all normal folders, i added it there too, in \mods\deathmatch\resources\ion\ and then i added this on meta.xml :

and this i added to mtaserver.conf :

why i still get errors, now the errors are different, look. :

http://img115.imageshack.us/my.php?image=asdaswh4.png

Please, i need an answer.

Posted

delete the ion folder in resourcecache and either unzip the ion.rar file to resources\ion\ or make it into a zip file

Kevuwk

Any comments made are purely my own and do not represent the interests of the MTA Team

Posted

Oh, okay, thanks, i can get it to the server now, but, i don't know how to use, in the ion.lua script has this in the file : bindKey ( v, "f", "down", "placeIonCannonBeacon" ) but i cant get it work on f or v, and i don't know how to use it, does it matters if the server console says this :

[16:49:05] Starting ion

[16:49:05] WARNING: ion.lua: Bad argument @ 'addEventHandler' - Line: 14

[16:49:05] WARNING: ion.lua: Bad argument @ 'addEventHandler' - Line: 24

[16:49:05] WARNING: ion.lua: Bad argument @ 'addEventHandler' - Line: 59

but does the ion cannon works if server give those errors?

Posted

this script then may be out of date due to changes made in scripting functions, if you want to paste the script to http://mta.pastebin.com/ and post the link back here i will take a look at it

Kevuwk

Any comments made are purely my own and do not represent the interests of the MTA Team

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...