This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
andrew28's profile picture

Http API with true and false

Started by andrew28, 05 April 2014 - 08:26 PM
andrew28 #1
Posted 05 April 2014 - 10:26 PM
Im not a good programmer for CC but I was wondering how I can make it so that someone can type an argument like check <name>. And it will check if the account is premium with this address. It returns with true or false. And I want to translate the true/false messages to <name> is premium or <name> is not premium. https://minecraft.net/haspaid.jsp?user=<name>
CometWolf #2
Posted 05 April 2014 - 10:37 PM
Just use the http api, and check the result with string.find or match.
http://lua-users.org/wiki/StringLibraryTutorial