CLEO Divide long string into 2 parts

CLEO related

Ice555

Active member
Joined
Mar 11, 2021
Messages
49
Solutions
3
Reaction score
7
Location
Lithuania
Code:
IF 0AD4: $NOT_USED = scan_string 31@ format "%s %s" 30@v 29@v// 31@ is ur main string
then
    printf "1:%s 2:%s" time 1000 30@v 29@v
end
 

dphome

Well-known member
Joined
Mar 21, 2020
Messages
475
Solutions
9
Reaction score
168
Location
Poland
PHP:
{$CLEO .cs}
{$USE bitwise}
0000:

WHILE TRUE
WAIT 0

IF 0ADC:   test_cheat "K" 
THEN
    0B12: 30@ = 30@ XOR 1        
    IF 0039:   30@ == 1
    THEN 0AD1: "~w~Script ~g~Enable" 1000
    ELSE 0AD1: "~w~Script ~r~Disable" 1000
    END
END

IF 30@ == 1
THEN
    0AC8: 0@ = allocate_memory_size 1024
    0AC8: 1@ = allocate_memory_size 1024
    0AC8: 4@ = allocate_memory_size 1024
    0AB1: @getChatString 1 ChatID 99 _Returned: Text 0@ PrefixText 1@ Color 2@ PrefixColor 3@
    IF 0AD4: $NOT_USED = scan_string 0@ format "Joaquin Morientez mówi: %s" 4@v
    THEN
        0AD1: "~r~[Message]~n~~y~%s" 1000 4@v
    END    
END

END
0A93: terminate_this_custom_script

c3ojN0Z.png
 

Attachments

  • Script.cs
    25.7 KB · Views: 1
Top