I've tried finding more information about this, but I can't seem to find any topic with what I want.
In the reference for CheckPassport() it mentions "If the user is subscribed, the result is the number of days left (rounded up) on their subscription, or -1 for lifetime subscribers."
So, with that in mind, I am wondering if my code can check that number, and update my own vars based off whether the number equals (for example only), 30, 60, or -1 and such?
As you may be able to guess, I am wondering this because if that is possible I can reward people differently based off the duration of the subscription they bought. I'd find that incredibly valuable, in some cases.
I'm asking this for future reference, since it'll be important when I get to the release phase on a project.
Dec 12 2012, 11:45 pm
Best response
|
|
Ah, wow. I didn't expect it to be that simple, heck I was worried it wouldn't even be possible. Thanks!
|
In response to NNAAAAHH
|
|
For the question regarding for(var/i in 1 to -1), it will not iterate. You'll have to handle -1 differently.
PS: The proper syntax is for(var/i in i_initial to i_final step i_step) If step is removed, i_step will default to 1. |
In response to Jemai1
|
|
I figured as such, thanks for clarification.
|