attic said:
Code:
{$CLEO}
0000:
wait 5000
:MAIN
REPEAT
wait 0
UNTIL SAMP.Available
while true
wait 5000
0AC8: 1@ = allocate_memory_size 145
0AB1: call @getChatEntryText 1 id 99 to 1@
if
0AD4: $NOT_USED = scan_string 0@ format "* Bodyguard %s wants to protect you for $200, type /accept bodyguard to accept." $NOT_USED
jf @MAIN
jump @ACCEPT
:ACCEPT
wait 0
0AF9: samp say_msg "/accept bodyguard"
wait 500
jump @MAIN
:GETCHATENTRYTEXT
IF 0AA2: 1@ = "samp.dll"
THEN
1@ += 0x21A0E4
0A8D: 1@ readMem 1@ sz 4 vp 0
1@ += 0x132
0@ *= 0xFC
005A: 1@ += 0@
1@ += 0x20
0AA3: 1@
END
0AB2: ret 1 1@
makes my gta crash
Incorrect usage of 0AD4 opcode? You get the text from :GETCHATENTRYTEXT snipper to the 1@ and...? No comparing? This is the problem
Plus the syntax is pretty bad tho, is this :GETCHATENTRYTEXT supposed to get you a desired line from chat? If I got it right, you better use 0B75: samp get_chat_string 99 text_to 1@ prefix_to 2@ color_to 3@ prefix_color_to 4@, guess you can null unused parameters here