CLEO Help game crashes on cleo script launch

CLEO related

Hakovics

New member
Joined
Apr 6, 2015
Messages
1
Reaction score
0
When I compile this script and open the game and activate script with "ZC" game crashes any help and solutions? I use SAMP 0.3.7-R1 Cleo 4.4 and SF 5.3.3

{$CLEO .cs} 0000: WHILE TRUE WAIT 0 // Using variable 0@ for toggle state IF 0ADC: test_cheat "ZC" THEN 0B12: 0@ = 0@ XOR 1 IF 0039: 0@ == 1 THEN 0AD1: show_formatted_text_highpriority "~w~Script ~g~ON" time 1337 ELSE 0AD1: show_formatted_text_highpriority "~w~Script ~r~OFF" time 137 END END IF 0@ == 1 THEN // Allocate memory for chat strings 0AC8: 1@ = allocate_memory_size 1024 0AC8: 2@ = allocate_memory_size 1024 0B75: samp get_chat_string 99 text_to 1@ prefix_to 2@ color_to 3@ prefix_color_to 4@ // Check if the chat text contains the desired format IF 0AD2: string 1@ format_contains "[REAKCIJE] Upisite prvi " THEN // Extract the text between the markers 0AC8: 5@ = allocate_memory_size 256 0AA6: call_function "scan_between" params_count 4 string 1@ search_start "[REAKCIJE] Upisite prvi " search_end "i osvojite" result_to 5@ // Add a delay between 2 and 5 seconds 0209: 6@ = random_int_in_ranges 2000 5000 WAIT 6@ // Paste the extracted text in chat 0AF9: samp say_msg "%s" 5@ // Free allocated memory for extracted text 0AC9: free_allocated_memory 5@ END // Free allocated memory for chat strings 0AC9: free_allocated_memory 1@ 0AC9: free_allocated_memory 2@ END END // Function to extract text between two markers // Parameters: string, search_start, search_end, result_to 0AA7: get_string_length 0@ store_to 0@ 0AA7: get_string_length 1@ store_to 1@ 0AA7: get_string_length 2@ store_to 2@ 0AD4: 3@ = scan_string 0@ format "%s%s%s" 1@ 4@ 2@ 0AB2: ret 1 4@
 
Top