Read a line in chat

Статус
В этой теме нельзя размещать новые ответы.

ZAKI19

Новичок
Автор темы
13
0
hi guys i need a cleo that read a number in the last line of the chat and store it to 1@

the chat line is like that
*the phone number is "456123"
and i want it to store only numbers

dark knight made this and it not work it say 2 paramaters needed in 0ac8

------------------------------------------------------------
{$CLEO}
{$NOSOURCE}

while true
wait 0
if 0AB0: key_pressed 0x73//F4
then
0ac8: 0@
0ac8: 1@
0B75: samp get_chat_string 99 text_to 0@ prefix_to 1@ color_to 1@ prefix_color_to 1@
0af8: "%s" 0xFF00FF 0@
0ac9: 1@
0ac9: 1@
while 0AB0: key_pressed 0x73//F4
wait 0
end
end
end
-----------------------------------------------------------------

i change it to this
------------------------------------------------------------------

:TPTER_30
wait 1000
if
0ADC: test_cheat "kk"
jf @TPTER_30
jump @TPTER_60

:TPTER_60
wait 1
0B75: samp get_chat_string 99 text_to 0@ prefix_to 1@ color_to 2@ prefix_color_to 3@
wait 20
0AF9: samp say_msg " %d try" 0@
0ac9: 0@
jump @TPTER_30
-----------------------------------------------------------------------
did not work help pleassssssssse
 

Dark_Knight

Me, me and me.
Друг
4,084
2,112
Fixed
Код:
{$CLEO}
{$NOSOURCE}
 
0000:
 
while true
wait 0
    if 0AB0: key_pressed 0x73//F4
    then
    0ac8: 0@ = 512
    0ab1: call @getChatEntryText 1 99 to 0@
    0af8: "%s" 0xFF00FF 0@
        while 0AB0: key_pressed 0x73//F4
        wait 0
        end
    0ac9: 0@
    end
end
 
 
:getChatEntryText
// 0AB1: call @getChatEntryText 1 id 0@ to 1@
{ In 0@ - number of chat line. 99 line is last.
Out 1@ - line text }
1@ = samp.Base()
1@ += 0x212A6C
0A8D: 1@ = read_memory 1@ size 4 virtual_protect 0
1@ += 0x136
0@ *= 252 // size of stChatEntry
005A: 1@ += 0@ // (int)
1@ += 28
0AB2: ret 1 1@
 
Статус
В этой теме нельзя размещать новые ответы.