You are not logged in.
Hi all,
i createt a simple speedometer, but when i enter a car, on the keys:
W & F i got always a beep when i press it. if im out of the car it stops..
whats that?
here my code:
// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007 {$VERSION 3.1.0027} {$CLEO .cs} //-------------MAIN--------------- wait 3 0@ = 0 :NONAME_11 wait 100 if Player.Defined($PLAYER_CHAR) else_jump @NONAME_11 if $ONMISSION == 0 else_jump @NONAME_11 077E: get_active_interior_to 1@ if 003A: 1@ == 0@ // (int) else_jump @NONAME_11 if and not Actor.Dead($PLAYER_ACTOR) Actor.Driving($PLAYER_ACTOR) else_jump @NONAME_11 0391: release_txd_dictionary 03C0: $12410 = actor $PLAYER_ACTOR car 0390: load_txd_dictionary "PANIC" 038F: load_texture "RAHMEN" as 99 wait 0 08D4: $12411 = create_panel_with_title 'DUMMY' position 450.0 7.0 width 40.0 columns 1 interactive 1 background 0 alignment 0 08DB: set_panel $12411 column 0 header 'DUMMY' data 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' :NONAME_290 wait 0 if and Actor.Driving($PLAYER_ACTOR) 056E: car $12410 defined not Car.Wrecked($12410) 003A: 1@ == 0@ // (int) else_jump @NONAME_484 02E3: $12412 = car $12410 speed $12412 *= 2.2018 $12412 += 60.0 02E3: $12413 = car $12410 speed $12413 *= 2.4018 008C: $12413 = float $12413 to_integer 08EE: set_panel $12411 column 0 row 0 text_1number GXT 'NUMBER' number $12413 038D: draw_texture 99 position 483.0 49.0 size 43.0 48.0 RGBA 255 255 255 255 03F0: enable_text_draw 0 077E: get_active_interior_to 1@ if or 803A: not 1@ == 0@ // (int) $ONMISSION == 1 Actor.Dead($PLAYER_ACTOR) Car.Wrecked($12410) else_jump @NONAME_290 :NONAME_484 wait 10 Car.RemoveReferences($12410) 08DA: remove_panel $12411 wait 1 03F0: enable_text_draw 0 wait 1 0391: release_txd_dictionary jump @NONAME_11
Offline
I said it zillion times: do not use global variables in CLEO scripts, they cause troubles.
Offline
I said it zillion times: do not use global variables in CLEO scripts, they cause troubles.
jo, thanks for that info, not knewed ^^
Offline