Posted 22 July 2013 - 02:49 PM
Hello, I am developing a system that allows computers to remotley access commandblocks in a central processing center(since players cannot use commandblock and they are required for the functionality of the app)
I have got it pretty much done, but I have one question.
On the "server" computers hooked up to the commandblocks, they will request a command to execute from a webpage, which will return a string as follows
I need to split this into 3 different variables, so that I can pass the last two to the commandblock, then send a request back to the server with the request ID(in this case "1"), to remove the request from the database.
I am 100% competent with PHP, but not so much with LUA, so, how would I go about splitting this string, into 3 individual variables?
Thanks for taking the time to read my help request.
I have got it pretty much done, but I have one question.
On the "server" computers hooked up to the commandblocks, they will request a command to execute from a webpage, which will return a string as follows
1|SPAWN|TRENSALOR
I need to split this into 3 different variables, so that I can pass the last two to the commandblock, then send a request back to the server with the request ID(in this case "1"), to remove the request from the database.
I am 100% competent with PHP, but not so much with LUA, so, how would I go about splitting this string, into 3 individual variables?
Thanks for taking the time to read my help request.