Hey guys,
I am new on gtaforums and this is my first Cleo mod.
Anyways ive got an error in there, when the car stands still it displays 0 but sometimes it switches to 1 for a second.
Ive tried to fix that by setting the $speed value to 0 if its 1 but that wont work at all. If i set $speed to anything higher like 3313 it works well and dont changes its display value?
PS: sorry for ugly post spoiler dont works
Greez~
| CODE |
{$CLEO .cs}
//-------------MAIN--------------- 0000: NOP 0A95: enable_thread_saving
:DSP_1 wait 0 if and //im Auto? Actor.Driving($PLAYER_ACTOR) $ACTIVE_INTERIOR == 0 84C8: not actor $PLAYER_ACTOR driving_flying_vehicle 84A7: not actor $PLAYER_ACTOR driving_boat jf @DSP_1 0811: 1@ = actor $PLAYER_ACTOR car //CarHandle speichern 03F0: enable_text_draw 1 jump @DSP_2
:DSP_2 wait 100 if and //im Auto? Actor.Driving($PLAYER_ACTOR) $ACTIVE_INTERIOR == 0 jf @DSP_3 //JUMP -> GXT löschen 02E3: 2@ = car 1@ speed 2@ *= 4.0 //FIX Geschwingkeit realistischer 0092: 3@ = float 2@ to_integer //FIX Float->Int 0004: $SPEED = 3@
if or $SPEED == 0 $SPEED == 1 then //FIX Anzeige fehler 0~1 $SPEED = 0 end
04F7: status_text $SPEED 0 1 'EINHEIT' jump @DSP_2
:DSP_3 wait 0 03F0: enable_text_draw 0 0151: remove_status_text $SPEED jump @DSP_1 |
This post has been edited by mcoocr on Sunday, Sep 23 2012, 21:00