1619 posts
Posted 14 January 2013 - 03:04 PM
:o/> A Lua Maniac posting in Ask a Pro? Yeah, well no one's perfect.
Anyways, I decided to write an FTP client for my Tekkit server. (:o/> Playing Tekkit? I know, I know, my reputation sinks lower with every word :P/>)
I'm using tables to send the file name and the data between computers. I've tried debugging and I can't seem to find the problem.
Here's the code:
http://pastebin.com/Sj07KyN5
139 posts
Location
USA
Posted 14 January 2013 - 03:07 PM
What's the problem you're having so I have an idea of where to start looking?
1619 posts
Posted 14 January 2013 - 03:09 PM
Well, it simply doesn't do anything. It sends the message fine, and when it receives the table it just exits the program without writing to the file.
7508 posts
Location
Australia
Posted 14 January 2013 - 03:12 PM
:o/> A Lua Maniac posting in Ask a Pro? Yeah, well no one's perfect.
Haha I always feel the same, title = 'Lua God' and asking for help cause I can't see the issue and need some fresh eyes…
line 13 I think it should be tonumber( tArgs[2] ) … yes?
1619 posts
Posted 14 January 2013 - 03:15 PM
:o/> A Lua Maniac posting in Ask a Pro? Yeah, well no one's perfect.
Haha I always feel the same, title = 'Lua God' and asking for help cause I can't see the issue and need some fresh eyes…
line 13 I think it should be tonumber( tArgs[2] ) … yes?
+1. That fixed it. Thanks Bit.
7508 posts
Location
Australia
Posted 14 January 2013 - 03:16 PM
- snip -
+1. That fixed it. Thanks Bit.
haha sweet, wasn't sure if that was it, so long since I've used rednet couldn't remember if it was returned as a number or not :P/> and too lazy to check the wiki … after all you are a Lua Maniac … :P/>
Edited on 14 January 2013 - 02:17 PM