Posted 09 August 2013 - 04:17 PM
Hello all I have written a pretty basic program which automatically dials stargates(a plugin thta provide instantanious treansport between any two locations with a gate) on my server, Currently the program asks the user where they want to go, and then searches my database for an address via a php page.
However it appears that when lua submits the request to my page, it cuts the data off after the first space, causing it to get the wrong address
As you see when you go here: http://projectbuilde...e=nulls%20house
It properly returns the address to my house.
My code is included below, you can run it on any computer in game to see that when you type "nulls house" it will try to dial "nulls TARDIS", because it doesn't include the second word when submitting the request. (http://projectbuilde...gate&name=nulls)
Below is my code:
http://pastebin.com/2YND8rRp (to make it work you need 3 monitors above the pc, and the pc must have a label set)
I think for some reason the input is not being read properly, it seems to stop after the first space.
However it appears that when lua submits the request to my page, it cuts the data off after the first space, causing it to get the wrong address
As you see when you go here: http://projectbuilde...e=nulls%20house
It properly returns the address to my house.
My code is included below, you can run it on any computer in game to see that when you type "nulls house" it will try to dial "nulls TARDIS", because it doesn't include the second word when submitting the request. (http://projectbuilde...gate&name=nulls)
Below is my code:
http://pastebin.com/2YND8rRp (to make it work you need 3 monitors above the pc, and the pc must have a label set)
I think for some reason the input is not being read properly, it seems to stop after the first space.