SA-MP Forums Archive
IPL file to CreateObject in Pawno? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: IPL file to CreateObject in Pawno? (/showthread.php?tid=634969)



IPL file to CreateObject in Pawno? - 123robot - 29.05.2017

I want a way to easily convert object lines in an IPL file to 'CreateObject' lines in Pawno so that I can place map changes from singleplayer into an Sa-Mp server setting as a filterscript without having to tirelessly re-type out hundreds of lines of mapping code in another format. As an example, I want something that can quickly and easily convert many lines of this:

8038, arprtermnl01_lvs, 0, 503.38, -2503, 21.55, 0, 0, 0.707108188464, -0.707105373907, -1

...into this...

CreateObject(8038,503.38,-2503.0,21.55,0.00000000,0.00000000,0.707108188464) ;

...all at once. I've searched for a while, and I've found things that can convert between MTA map files and Sa-Mp filterscripts, but I haven't been able to find anything still existing that can do this. The only thing I could find was something I couldn't seem to get to work, which I've linked below:

https://pastebin.com/1VuTHaf3

It looks like it'd be perfect for what I want, but I'm not sure how to use it. So if anyone could help me find a way to convert this stuff efficiently or help me figure out how that code works so I can convert with that, either would be much appreciated.


Re: IPL file to CreateObject in Pawno? - Pottus - 29.05.2017

You already have everything you need in that link.


Re: IPL file to CreateObject in Pawno? - Veigar - 04.06.2017

@Above

That's something he said already, he just doesn't know how to use the script in the link. I don't really know either, though..


Re: IPL file to CreateObject in Pawno? - Vince - 04.06.2017

  1. Put IPL file in scriptfiles folder.
  2. Change define to match filename.
  3. Compile script.
  4. Run script.
  5. ???
  6. Profit!