[font='Source Sans Pro', Tahoma, 'Helvetica Neue', Arial, sans-serif]DavidRO99,[/font]
[shcode=cpp]
while true
wait 0
0AC8: 0@ = allocate_memory_size 260
0B75: samp get_chat_string 99 text_to 0@ -1 -1 -1
/* 0@ is the whole text every time a new line appear
now i don't really know what you want to do but you can check if 0@ is equal it another string*/
if 0AD4: 1@ scan string 0@ "Paine prajita. " // if 0@ == "Paine Prajita"
then
// do something
end
end
/* opcodeexe example works fine, im sure you writed in game the phone number is %d, aren't you?
you forget about the first string that's before "the ...", may be this would be your name/id or idk?
[/shcode]
[shcode=cpp]
// there is an example if some one writes in game paine prajita then script will continue
for 2@ = 0 to 999
1@ = SAMP.GetPlayerNickname(2@)
// alloc, get chat string
if 0AD4: 3@ scan string 0@ "%s says: Paine prajita. " 1@ // Nume says: Paine prajita.
then
// do smt
end
// free mem when you done w/ it
[/shcode]