megaman54 Posted December 12, 2009 Share Posted December 12, 2009 Can you tell me how to convert SAMP pwn script to LUA script? Is there any converter? I noticed that there were a amx converter in MTA server folder but it wont work. So help please Link to comment
50p Posted December 13, 2009 Share Posted December 13, 2009 I haven't heard of any script converter (pwn -> lua) yet. The amx you've seen is not a converter but an "emulator". It can run SA-MP scripts but it's much much slower than using Lua alone because when an event occurs, amx module calls a samp function which than has to be emulated and executed as Lua code. Link to comment
robhol Posted December 13, 2009 Share Posted December 13, 2009 Unless you're sitting on a 9001-line script (which could happen, I guess) you're mostly better off rewriting the mode. Hell, even if you ARE sitting on a 9001-line script it'd probably be worth it. Link to comment
megaman54 Posted December 16, 2009 Author Share Posted December 16, 2009 The script i want to convert is about 40000 lines. Link to comment
robhol Posted December 16, 2009 Share Posted December 16, 2009 Well, get out your Lua tutorials and MTA function references: you will be needing them if you plan on going through with this. MTA and SA-MP are so widely different in what they support and how they do it, even with a perfect scripting language "translator" you'd be in deep crap. You can't do this without putting in some hard work, and if you could, you would be sitting left with an abysmally crappy result. Link to comment
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