ID:139640
 
Hi can some body help me with subscription method like Falacy got in his game I have done some of the coding but cant figure out how to make it work...
here is my code
mob
proc
SUBSCRIPTION()
set category="Debug"

var/http[]=world.Export("http://paygamez.angelfire.com/Subscribers.txt")
var/F=http["CONTENT"]
if(F)
var/FX=html_encode(file2text(F))
var/key=copytext(FX,1,findtext(FX,"/"))
var/date=copytext(FX,findtext(FX,"/")+1)
Keys+=key
if(Keys.Find(src.ckey))
usr<<"[Keys]"
if(date>=time2text(world.realtime,"DD-MM-YY"))
usr<<time2text(world.realtime,"DD-MM-YY")


I'm not sure if Falacy's subscription method is any different than the traditional, built-in one. Subscriptions are handled in the hub, with the client.IsSubscribed() proc.
In response to Kaiochao
i wanted to use online method so it will add any subscriber in all games not only one and falacy is using online method
In response to Hassanjalil
While you are right that Falacy is applying a strange convoluted method to determine subscription for his games due to whatever (likely jurisdictional) means, the suggested alternate built-in method (client.CheckPassport) works perfectly fine as a subscribe once for all games and bases around an easy to administrate white list that is accessible on-line.

As for the issue you're experiencing, you might find that you're getting more help if you describe the actual problem you encounter than just to dish a code snippet you copy and pasted somewhere at people.