CLEO Help Auto-Engine when reading the text in the chat

CLEO related

Escalasion

Member
Joined
Sep 20, 2024
Messages
15
Reaction score
0
I tried with this code exactly as I have seen with others for reading a text from the chat on SA-MP type cleo (sanny builder), but it doesn't work, I don't know why. What is wrong here?
 

Attachments

  • Autoengine.PNG
    Autoengine.PNG
    6.6 KB · Views: 37

Opcode.eXe

Expert
Joined
Feb 18, 2013
Messages
1,493
Reaction score
236
Location
( ͡° ͜ʖ ͡°)
  • Get the Right Chat Message: First, grab the chat messages with color codes. You can find them in your SA-MP chatlog in the "GTA SA User Files" folder.
  • Search for Key Phrases: Use the “search string in string” thing to hunt down just the important stuff, like "turn on the engine." Don’t go overboard.
  • Wrap it in a while true Loop: Put your script inside a while true loop so it runs forever like a tired cat that refuses to nap.
  • Don’t Overdo Memory Allocation: Allocate memory once at the start, then forget about it. No need to keep freeing it over and over—it’s not a revolving door.
  • Give It a Break: After running the /engine command, add a little delay. Otherwise, it'll spam /engine like it’s the only thing it knows.
  • Use 0@ - 31@ Instead of $variable: Don’t use $variable. Stick with 0@ - 31@—trust me, it’s cooler and works better.

maybe post full code
 

Escalasion

Member
Joined
Sep 20, 2024
Messages
15
Reaction score
0
Thanks for the help, but I already discovered the cause of this problem of the code not working, it was simply from "chat modern.asi", which I don't understand why it doesn't work together with it...
 
Top