veysileth
Active member
- Joined
- Mar 23, 2017
- Messages
- 85
- Reaction score
- 6
Code:
:2
0001: wait 100 ms
0AF8: samp add_message_to_chat "2 STARTED" color -12027976
00D6: if
0039: 1@ == 1
004D: jump_if_false @RET4
0AF8: samp add_message_to_chat "SHIT HAPPENED" color -12027976
00A0: store_actor 14@ position_to 20@ 21@ 22@
02A8: 25@ = create_marker 41 at 20@ 21@ 22@
0001: wait 2000 ms
0002: jump @2
Why it's crashing?
When i put [font=Monaco, Consolas, Courier, monospace]0002: jump @somewhereelso where :somewhereelso is just 0B43: samp cmd_ret then it's working fine but even [/font]
[font=Monaco, Consolas, Courier, monospace][size=small][font=Monaco, Consolas, Courier, monospace]0002: jump @there[/font][/font][/size]
[font=Monaco, Consolas, Courier, monospace][size=small][font=Monaco, Consolas, Courier, monospace]:there[/font][/font][/size]
[font=Monaco, Consolas, Courier, monospace][size=small][font=Monaco, Consolas, Courier, monospace][size=small][font=Monaco, Consolas, Courier, monospace]0002: jump @2[/font][/font][/size][/font][/size]
[font=Monaco, Consolas, Courier, monospace][size=small][font=Monaco, Consolas, Courier, monospace][size=small][font=Monaco, Consolas, Courier, monospace]is crashing again. I did see some scripts and they don't have this problem.[/font][/font][/size][/font][/size]
[font=Monaco, Consolas, Courier, monospace][size=small][font=Monaco, Consolas, Courier, monospace][size=small][font=Monaco, Consolas, Courier, monospace]Whole script. Yea i know it will spam markers all over the map. I will add disable_marker later.[/font][/font][/size][/font][/size]
[font=Monaco, Consolas, Courier, monospace][size=small][font=Monaco, Consolas, Courier, monospace][size=small][font=Monaco, Consolas, Courier, monospace]
[/font]
[/font][/size][/font][/size]
[font=Monaco, Consolas, Courier, monospace][size=small][font=Monaco, Consolas, Courier, monospace][size=small][font=Monaco, Consolas, Courier, monospace]
Code:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}
//-------------MAIN---------------
0000: NOP
0006: 1@ = 0
:HELLO
0001: wait 0 ms
8AFA: not is_samp_available
004D: jump_if_false @OK
0001: wait 400 ms
0002: jump @HELLO
:OK
0001: wait 0 ms
0AF8: samp add_message_to_chat "OK STARTED" color -12027976
0001: wait 1000 ms
0006: 1@ = 0
0B34: samp register_client_command "fd" to_label @1
0B34: samp register_client_command "ufd" to_label @UN_1
0002: jump @MIGHTY_LOOP
:MIGHTY_LOOP
0001: wait 10000 ms
0002: jump @MIGHTY_LOOP
:1
0001: wait 0 ms
0AF8: samp add_message_to_chat "1 STARTED" color -12027976
0B35: samp 10@ = get_last_command_params
00D6: if
0AD4: 11@ = scan_string 10@ format "%D" 12@
004D: jump_if_false @RET1
0B20: samp 14@ = actor_handle_by_samp_player_id 12@
00D6: if
056D: actor 14@ defined
004D: jump_if_false @RET2
0006: 1@ = 1
00D6: if
0039: 1@ == 1
004D: jump_if_false @RET3
0002: jump @2
:2
0001: wait 100 ms
0AF8: samp add_message_to_chat "2 STARTED" color -12027976
00D6: if
0039: 1@ == 1
004D: jump_if_false @RET4
0AF8: samp add_message_to_chat "SHIT HAPPENED" color -12027976
00A0: store_actor 14@ position_to 20@ 21@ 22@
02A8: 25@ = create_marker 41 at 20@ 21@ 22@
0001: wait 2000 ms
0002: jump @2
:UN_1
0001: wait 0 ms
0AF8: samp add_message_to_chat "UN1 STARTED" color -12027976
0006: 1@ = 0
0B43: samp cmd_ret
:RET1
0001: wait 0 ms
0AF8: samp add_message_to_chat "RET1 STARTED" color -12027976
0006: 1@ = 0
0B43: samp cmd_ret
:RET2
0001: wait 0 ms
0AF8: samp add_message_to_chat "RET2 STARTED" color -12027976
0006: 1@ = 0
0B43: samp cmd_ret
:RET3
0001: wait 0 ms
0AF8: samp add_message_to_chat "RET3 STARTED" color -12027976
0006: 1@ = 0
0B43: samp cmd_ret
:RET4
0001: wait 0 ms
0AF8: samp add_message_to_chat "RET4 STARTED" color -12027976
0006: 1@ = 0
0B43: samp cmd_ret
:RET5
0001: wait 0 ms
0AF8: samp add_message_to_chat "RET5 STARTED" color -12027976
0006: 1@ = 0
0B43: samp cmd_ret
:RET6
0001: wait 0 ms
0AF8: samp add_message_to_chat "RET5 STARTED" color -12027976
0006: 1@ = 0
0B43: samp cmd_ret
[font=Monaco, Consolas, Courier, monospace][size=small][font=Monaco, Consolas, Courier, monospace][size=small][font=Monaco, Consolas, Courier, monospace]