digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 07 Sep 2011 12:35 PM |
I have this output: Wed Sep 07 18:34:47 2011 - Players.digpoe.PlayerGui.TimeGui.TextButton.Script:13: 'do' expected near 'true' that came from this script:
gui = script.Parent.Text player = nil time = {script.Parent.Parent.Hours.Value, script.Parent.Parent[":"].Value, script.Parent.Parent.Mins.Value, script.Parent.Parent[":"].Value, script.Parent.Parent.Secs.Value} function timing() if game.Players:findFirstChild(LocalPlayer) then player = game.Players:findFirstChild(script.Parent.Name) else player = nil end if player then script.Parent.Text = time end while wait(1) true do script.Parent.Parent.Secs.Value = script.Parent.Parent.Secs.Value +1 script.Parent.Text = time end while wait (60) true do script.Parent.Parent.Mins.Value = script.Parent.Parent.Mins.Value +1 end while wait (3600) true do script.Parent.Parent.Hours.Value = script.Parent.Parent.Hours.Value +1 end end
I mean, everything seems OK so I dont understand whats wrong.
|
|
|
| Report Abuse |
|
|
| |
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 07 Sep 2011 12:43 PM |
| I just tried, it came up with the same output. |
|
|
| Report Abuse |
|
|
|
| 07 Sep 2011 12:50 PM |
| Change it for all the while loops. |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 07 Sep 2011 12:54 PM |
| No, now theres no output at all, and it dosent work! |
|
|
| Report Abuse |
|
|
| |
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 07 Sep 2011 01:42 PM |
| Bawmpeddy Dawmpedy, Plz help!! |
|
|
| Report Abuse |
|
|
myrco919
|
  |
| Joined: 12 Jun 2009 |
| Total Posts: 13241 |
|
| |
|
| |
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 07 Sep 2011 01:49 PM |
| I didn't call the function? U mean? |
|
|
| Report Abuse |
|
|
|
| 07 Sep 2011 01:51 PM |
| You need to call the function in order for it to run... |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
| |
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 07 Sep 2011 02:04 PM |
PBumpp
Please Bring Up My Post PLEASE!! |
|
|
| Report Abuse |
|
|
|
| 07 Sep 2011 02:10 PM |
| you created a function called "timing" so you need to call it by doing this at the end of your script: timing() |
|
|
| Report Abuse |
|
|
|
| 07 Sep 2011 02:17 PM |
| You basically just need to call the function. It's like that in all scripts with a function. |
|
|
| Report Abuse |
|
|
grimm343
|
  |
| Joined: 18 Sep 2008 |
| Total Posts: 2796 |
|
|
| 07 Sep 2011 02:25 PM |
| Connection line, or automatically-starting function.. |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 08 Sep 2011 09:43 AM |
| grimm, wher do i need connection line? |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 08 Sep 2011 09:49 AM |
Fail with the call script, it said: Thu Sep 08 15:49:25 2011 - timing is not a valid member of Script Thu Sep 08 15:49:25 2011 - Script "Players.Player.PlayerGui.TimeGui.TextButton.Script", Line 24
when I added the call function. |
|
|
| Report Abuse |
|
|
grimm343
|
  |
| Joined: 18 Sep 2008 |
| Total Posts: 2796 |
|
|
| 08 Sep 2011 12:18 PM |
gui = script.Parent.Text player = nil time = {script.Parent.Parent.Hours.Value, script.Parent.Parent[":"].Value, script.Parent.Parent.Mins.Value, script.Parent.Parent[":"].Value, script.Parent.Parent.Secs.Value}
function timing() if game.Players:findFirstChild(LocalPlayer) then player = game.Players:findFirstChild(script.Parent.Name) else player = nil end if player then script.Parent.Text = time end while wait(1) do script.Parent.Parent.Secs.Value = script.Parent.Parent.Secs.Value +1 script.Parent.Text = time end while wait(60) do script.Parent.Parent.Mins.Value = script.Parent.Parent.Mins.Value +1 end while wait(3600) do script.Parent.Parent.Hours.Value = script.Parent.Parent.Hours.Value +1 end end
wait(5) timing() |
|
|
| Report Abuse |
|
|