Rellica
|
  |
| Joined: 11 May 2013 |
| Total Posts: 955 |
|
|
| 18 Nov 2014 02:21 PM |
I'm using someone's Time API and at first it seemed to work great, but now that I've implemented it into 2 TextLabel's to show the date and the time, here is the script:
local t = script.Parent.Time local d = t.Parent.Date
function hi(zone) local timeapi = game:GetService("HttpService"):GetAsync("http://www.timeapi.org/"..zone) return { year=string.sub(timeapi,1,4), month=string.sub(timeapi,6,7), day=string.sub(timeapi,9,10), hour=string.sub(timeapi,12,13), minute=string.sub(timeapi,15,16), second=string.sub(timeapi,18,19), } end
while wait() do d.Text = (hi("est").month.."/"..hi("est").day.."/"..hi("est").year) t.Text = (hi("est").minute..":"..hi("est").second) end
I checked my FN+F9 output and it comes up with an error in Orange saying "Trying again" and then eventually ends up with err=0x223 or something along those lines.
Any help or ideas? |
|
|
| Report Abuse |
|
|
Rellica
|
  |
| Joined: 11 May 2013 |
| Total Posts: 955 |
|
| |
|
Rellica
|
  |
| Joined: 11 May 2013 |
| Total Posts: 955 |
|
| |
|
Rellica
|
  |
| Joined: 11 May 2013 |
| Total Posts: 955 |
|
| |
|
Rellica
|
  |
| Joined: 11 May 2013 |
| Total Posts: 955 |
|
| |
|
Rellica
|
  |
| Joined: 11 May 2013 |
| Total Posts: 955 |
|
| |
|
HexC3D
|
  |
| Joined: 30 Jun 2012 |
| Total Posts: 10044 |
|
|
| 18 Nov 2014 03:01 PM |
| Are you trying to get the local time? |
|
|
| Report Abuse |
|
|
|
| 18 Nov 2014 03:13 PM |
Yeah good idea sending 1,800 requests a minute That's why you're getting an error |
|
|
| Report Abuse |
|
|
gskw
|
  |
| Joined: 05 Jan 2013 |
| Total Posts: 1364 |
|
|
| 19 Nov 2014 12:44 AM |
Maybe you should only do one request and count time from it.
This is a signature. Recommended username: GorgeousGskw |
|
|
| Report Abuse |
|
|
| |
|
Seranok
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 11083 |
|
|
| 19 Nov 2014 01:45 AM |
| Are you factoring latency in? |
|
|
| Report Abuse |
|
|
Rellica
|
  |
| Joined: 11 May 2013 |
| Total Posts: 955 |
|
|
| 19 Nov 2014 12:33 PM |
| Well I fixed it now, I mean it still throws an odd error when it requests every minute but other than that it works perfectly; it doesn't break it just flags up an orange error :P |
|
|
| Report Abuse |
|
|
anaIyze
|
  |
| Joined: 29 May 2014 |
| Total Posts: 2048 |
|
|
| 19 Nov 2014 12:38 PM |
| People are too dumb to identify the number of days, weekds, months, and a full year to calculate the proper time. |
|
|
| Report Abuse |
|
|
Rellica
|
  |
| Joined: 11 May 2013 |
| Total Posts: 955 |
|
|
| 19 Nov 2014 12:41 PM |
| Problem is you just spelt weeks wrong, but thanks. |
|
|
| Report Abuse |
|
|
anaIyze
|
  |
| Joined: 29 May 2014 |
| Total Posts: 2048 |
|
|
| 19 Nov 2014 12:44 PM |
| I didn't spell it wrong; it was a mere typo. Stop embarassing yourself. |
|
|
| Report Abuse |
|
|