CLEO Help Read a line from the chat

CLEO related
Status
Not open for further replies.

SiraBots

Active member
Joined
Aug 11, 2013
Messages
50
Reaction score
0
Location
Norway
Hey guys.
I'm working on a farming bot and I need the script to read my SA-MP chat and see if a specific line comes up.
For example if nothing comes up, the script runs fine. If "Your route is complete." comes up, you exit the vehicle. How is that possible?

Thanks in advance.
 

WaTTi

Well-known member
Joined
Jan 4, 2015
Messages
260
Reaction score
8
FOR 0@ = 90 TO 99
    samp.GetChatString(0@, 1@, -1, -1, -1)
    if 0C29: 31@ = strstr string1 1@ string2 "your route is complete"
    THEN
    //EXITCARBLABLALBALBLABLBALBA
    END
END
 
Status
Not open for further replies.
Top