Jump to content
UBot Underground

Recommended Posts

I wonder if there is fellow UBOTers that could help me to inc the date by day inc. here is my not working code

 

ui stat monitor("Date : ", #Date)
loop(100) {
    set(#Date, $substring($date, 0, 10), "Global")
    wait(3)
}

 

thank you all

Link to post
Share on other sites

$date is a UB internal function.  You can't manipulate that - it only gives you the current date, no many how many loops-around it you give it...

 

If you want to have a number/string looking-like a date, you can construct it yourself.

Link to post
Share on other sites

What if you get this php script ( http://stackoverflow.com/questions/8307963/increase-current-date-by-5-days ), Use get() to get a url you pass in the URL to the script (can be a number, as in how many days you want to increase current date with) - and the scrape the date from there into a new varible.

 

The only bad about that is that you rely on a php script on an online server...

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...