A Community discussion forum for Halo Custom Edition, Halo 2 Vista, Portal and Halo Machinima

Home  Search Register  Login Member ListRecent Posts
  
 
»Forums Index »Halo Custom Edition (Bungie/Gearbox) »Halo CE Technical / Map Design »Timer Script Trouble

Author Topic: Timer Script Trouble (2 messages, Page 1 of 1)
Moderators: Dennis

Me2
Joined: Mar 28, 2009


Posted: Jul 18, 2009 04:43 AM    Msg. 1 of 2       
I was using this script:
(global short ticks 0)
(global short seconds 0)
(global short minutes 0)

(script continuous manage_ticks
(set ticks (+ ticks 1))
(if
(>= ticks 30)
(begin
(set seconds (+ seconds 1))
(set ticks 0)
)
)
(if
(>= seconds 60)
(begin
(set minutes (+ minutes 1))
(set seconds 0)
)
)
(hud_set_timer_time minutes seconds)
)

Which I found on another topic. I compiled the script with Sapien and I got this error
07.18.09 18:24:46  i expected a script or variable definition.: ÿþ(
07.18.09 18:24:46 recompiling scripts after scenarios were merged.
07.18.09 18:24:46 i expected a script or variable definition.: ÿþ(

Can anyone help me? Yes, I want a timer that counts up.


DarkZealot
Joined: Jan 1, 2008

Time management: 40% Xbox, 30% PC, 30% Skating


Posted: Jul 18, 2009 03:02 PM    Msg. 2 of 2       
Did you save the text file in "ANSI" and not "Unicode"?

That happened to me when I did that.

 

 
Previous Older Thread    Next newer Thread







Time: Thu January 19, 2023 8:45 AM 141 ms.
A Halo Maps Website