CLEO Help Detect of the hour, minute and second of the posting of the last NR type ad by the last person on the chat.

CLEO related

Escalasion

Member
Joined
Sep 20, 2024
Messages
6
Reaction score
0
Welcome! I would like to make a cleo type mod made with the help of the sanny builder program so that it detects the last NR type announcement published on the sa-mp server chat. That is, by executing the /lishow command, write on the chat when the NR type announcement was last posted and by which person, but I want it to be taken after the text "NR" and the color "0xFFA500/{FFA500}", but there is a problem, I don't know if this is the correct code but when I enter the game with this mod, the game runs very hard or crashes, I wonder what is wrong in this code? that I know it must be included in that "while true" to work, otherwise it's for nothing. Another problem is that when I execute the /lishow command, it only displays that "chatmsg", regardless of whether a NR announcement was given on the chat server, it still does not detect them. What is there to do? I gave 2 examples of pictures of what a "NR" type ad looks like with the respective color "0xFFA500/{FFA500}", as well as the name from which that NR type ad was posted.
 

Attachments

  • NR Ad screen.PNG
    NR Ad screen.PNG
    35.1 KB · Views: 4
  • NR last Ad screen.PNG
    NR last Ad screen.PNG
    9.1 KB · Views: 4
  • Detect text chat NR.cs
    19.1 KB · Views: 1
Top