I'm using code from this thread: http://ugbase.eu/index.php?threads/cleo.21467/#post-125764
I've replaced it with what I need to get, but it's also catching color codes from SAMP. What might be going on?
Here's my edit:
I've replaced it with what I need to get, but it's also catching color codes from SAMP. What might be going on?
Here's my edit:
Code:
{$CLEO .cs}
0000:
REPEAT
WAIT 0
UNTIL 0AFA: SAMP_IS_READY
WHILE TRUE
WAIT 0
IF
0B61: samp is_local_player_spawned
THEN
FOR 10@ = 99 TO 99
0AC8: 11@ = allocate_memory_size 260
0AC8: 12@ = allocate_memory_size 260
0B75: samp get_chat_string 10@ text_to 11@ prefix_to 12@ color_to 13@ prefix_color_to 14@
IF
0C29: 15@ = stristr string1 11@ string2 "Tienes un total de"
THEN
0C17: 16@ = strlen 15@
IF
0C29: 17@ = stristr string1 15@ string2 "Tienes un total de"
THEN
0C17: 18@ = strlen 17@
0062: 16@ -= 18@
0C24: strncpy destination 15@ source 15@ size 16@
15@ += 19
0AF9: samp say_msg "!!%s" 15@
wait 3000
END
END
END
END
END