IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

Please post mod releases in the Mod Showroom

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


  Reply to this topicStart new topicStart Poll

 SA Cleo Clock

 
MeatSafeMurderer  
Posted: Sunday, Jul 29 2012, 12:48
Quote Post


Not cut out for this
Group Icon
Group: Members
Joined: Mar 29, 2012

XXXXX



I'm trying to code a Clock in cleo4, unfortunately it crashes confused.gif
Here's the script:

CODE

0000: NOP
0A8C: write_memory 12046052 size 4 value 1 virtual_protect 1
1@ = 0
:NONAME_22
if and
  Player.Defined($PLAYER_CHAR)
09E7:   player $PLAYER_CHAR not_frozen
else_goto @NONAME_405
00BF: 10@ = current_time_hours, 20@ = current_time_minutes
add_dynamic_gxt_entry "TIME" "~1~:~1~"
add_dynamic_gxt_entry "0_TIME" "0~1~:~1~"
add_dynamic_gxt_entry "TIME_0" "~1~:0~1~"
add_dynamic_gxt_entry "0_TIME_0" "0~1~:0~1~"
if
 10 > 10@
else_goto @NONAME_228
if
 10 > 20@
else_goto @NONAME_352
gosub @NONAME_405
0340: set_text_draw_RGBA 119 136 153 180
045B: draw_text_2numbers 474.0 412.0 GXT '0_TIME_0' numbers 10@ 20@
return

:NONAME_228
if
 10 > 20@
else_goto @NONAME_299
gosub @NONAME_405
0340: set_text_draw_RGBA 119 136 153 180
045B: draw_text_2numbers 474.0 412.0 GXT 'TIME_0' numbers 10@ 20@  // ~1~:0~1~
return

:NONAME_299
gosub @NONAME_405
0340: set_text_draw_RGBA 119 136 153 180
045B: draw_text_2numbers 474.0 412.0 GXT 'TIME' numbers 10@ 20@  // ~1~:~1~
return

:NONAME_352
gosub @NONAME_405
0340: set_text_draw_RGBA 119 136 153 180
045B: draw_text_2numbers 474.0 412.0 GXT '0_TIME' numbers 10@ 20@
return

:NONAME_405
0342: set_text_draw_centered 1
03E0: draw_text_behind_textures 1
0348: enable_text_draw_proportional 1
060D: draw_text_shadow 1 rgba 0 0 0 255
033F: set_text_draw_letter_size 0.6 2.3
set_text_draw_align_right 1
0349: set_text_draw_font 3
enable_text_draw 1  
return


Any help will be appreciated
PMPlayStation Network
  Top
 

 
Deji  
Posted: Sunday, Jul 29 2012, 13:46
Quote Post


Coding like a Rockstar!
Group Icon
Group: Members
Joined: Dec 24, 2007

ja.gif

XXXXX



Do you actually know the basics of coding? If so, you should be able to figure out the brain-numbing problem by following the code.
Users WebsitePM
  Top
 

 
MeatSafeMurderer  
Posted: Sunday, Jul 29 2012, 14:34
Quote Post


Not cut out for this
Group Icon
Group: Members
Joined: Mar 29, 2012

XXXXX



LOL, I feel quite silly now, Improper use of return, I don't know how I didn't notice that, I shall remember that one, thank you colgate.gif

Oh and my layout was flawed massively XD

This post has been edited by MeatSafeMurderer on Sunday, Jul 29 2012, 14:39
PMPlayStation Network
  Top
 

 

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG