CLEO Help Auto reply System

CLEO related
Status
Not open for further replies.

TheDjCody

Active member
Joined
Sep 6, 2018
Messages
40
Reaction score
5
I need help with this code, i'm guide by this thread http://ugbase.eu/index.php?threads/sa-mp-read-chat-and-auto-reply.20067/ but i'm triyng to make automatic mode.

This is te code:

Code:
{$CLEO .cs}

0000: NOP
0AC8: 10@ = allocate_memory_size 260
0AC8: 11@ = allocate_memory_size 260
0AC8: 12@ = allocate_memory_size 260
0AC8: 13@ = allocate_memory_size 260
0AC8: 14@ = allocate_memory_size 260
0AC8: 15@ = allocate_memory_size 260
0AC8: 16@ = allocate_memory_size 260
0AC8: 17@ = allocate_memory_size 260
0AC8: 18@ = allocate_memory_size 260
0AC8: 19@ = allocate_memory_size 260
0AC8: 20@ = allocate_memory_size 260
0AF4: 10@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Sprunk_Whitewood"
0AF4: 11@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Almacen_Blueberry"
0AF4: 12@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Hunter_Quarry"
0AF4: 13@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Galpon_Bayside"
0AF4: 14@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Bone_County"
0AF4: 15@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: 16@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: 17@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: 18@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: 19@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: 20@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"

REPEAT
Wait 0
Until 0afa:

While True
Wait 0

if
0B61:  samp is_local_player_spawned
then
    0AC8: 0@ = allocate_memory_size 260
    0AC8: 1@ = allocate_memory_size 260
    0B75: samp get_chat_string 99 text_to 0@ prefix_to 1@ color_to 2@ prefix_color_to 3@ 
    If
    0C29: $NOT_USED = stristr string1 0@ string2 "Te están llamando por teléfono desde el número: {DBED15}4825{FFFFFF}, usa {DBED15}/atender{FFFFFF} o {DBED15}/colgar{FFFFFF}"
    Then
        say "/atender"
        wait 1000
        jump @Sprunk_Whitewood
    end
end


:Sprunk_Whitewood
if
0B61:  samp is_local_player_spawned
then
    0AC8: 4@ = allocate_memory_size 260
    0AC8: 5@ = allocate_memory_size 260
    0B75: samp get_chat_string 99 text_to 4@ prefix_to 5@ color_to 6@ prefix_color_to 7@
    if
    0C29: $NOT_USED = stristr string1 7@ string2 "Empresa de transporte(por celular): Hola, ¿podría ir a buscar una carga a la distribuidora de Sprunk de Whitewood Estates?"
    Then
        say 10@
        wait 1000
    else
        jump @Almacen_Blueberry
        end
    end
  
:Almacen_Blueberry
if
0C29: $NOT_USED = stristr string1 7@ string2 "Empresa de transporte(por celular): Hola, ¿podría ir a buscar una carga a un almacén de Blueberry?"
    Then
        say 11@
        wait 1000
    else
        jump @Hunter_Quarry
    end

  
:Hunter_Quarry
if
    0C29: $NOT_USED = stristr string1 7@ string2 "Empresa de transporte(por celular): Hola, ¿podría ir a buscar una carga a la cantera de Hunter Quarry?"
    Then
        say 12@
        wait 1000
    else
        jump @Galpon_Bayside
    end
  
:Galpon_Bayside
if
    0C29: $NOT_USED = stristr string1 7@ string2 "Empresa de transporte(por celular): Hola, ¿podría ir a buscar una carga a un galpón de Bayside?"
    Then
        say 13@
        wait 1000
    else
        jump @Bone_County
    end
  
:Bone_County
if
    0C29: $NOT_USED = stristr string1 7@ string2 "Empresa de transporte(por celular): Hola, ¿podría ir a buscar una carga a la cantera de Bone County?"
    Then
        say 14@
        wait 1000
    end     
end

This is the .ini:

Code:
[Viajes]
Sprunk_Whitewood=Si
Almacen_Blueberry=Si
Hunter_Quarry=Si
Galpon_Bayside=No
Bone_County:Si

The .ini work fine, the firts code "0C29: $NOT_USED = stristr string1 0@ string2 "Te están llamando por teléfono desde el número: {DBED15}4825{FFFFFF}, usa {DBED15}/atender{FFFFFF} o {DBED15}/colgar{FFFFFF}"" work great, but i'm trying my code detect a second reply but don't work.
 

Attachments

  • screenshot_31-12-2018_15-55-18-383.png
    screenshot_31-12-2018_15-55-18-383.png
    558.6 KB · Views: 27
Last edited:

Opcode.eXe

Expert
Joined
Feb 18, 2013
Messages
1,486
Reaction score
227
Location
( ͡° ͜ʖ ͡°)
Your script is completly wrong. You need to change it this way:


Code:
{$CLEO .cs}

0000: NOP
0AC8: 10@ = allocate_memory_size 260
0AC8: 11@ = allocate_memory_size 260
0AC8: 12@ = allocate_memory_size 260
0AC8: 13@ = allocate_memory_size 260
0AC8: 14@ = allocate_memory_size 260
0AC8: 15@ = allocate_memory_size 260
0AC8: 16@ = allocate_memory_size 260
0AC8: 17@ = allocate_memory_size 260
0AC8: 18@ = allocate_memory_size 260
0AC8: 19@ = allocate_memory_size 260
0AC8: 20@ = allocate_memory_size 260

0AF4: 10@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Sprunk_Whitewood"
0AF4: 11@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Almacen_Blueberry"
0AF4: 12@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Hunter_Quarry"
0AF4: 13@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Galpon_Bayside"
0AF4: 14@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Bone_County"
0AF4: 15@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: 16@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: 17@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: 18@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: 19@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: 20@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"



REPEAT
    Wait 0
Until 0afa:


0AC8: 0@ = allocate_memory_size 260 // for chatstring


WHILE TRUE
    Wait 0
    
    if
    0B61:  samp is_local_player_spawned
    then
        0B75: samp get_chat_string 99 text_to 0@ prefix_to 1@ color_to 2@ prefix_color_to 3@
        
        
        
        
        // FIRST_REPLY
        0B75: samp get_chat_string 99 text_to 0@ prefix_to 1@ color_to 2@ prefix_color_to 3@
        If
        0C29: $NOT_USED = stristr string1 0@ string2 "Te están llamando por teléfono desde el número: {DBED15}4825{FFFFFF}, usa {DBED15}/atender{FFFFFF} o {DBED15}/colgar{FFFFFF}"
        Then
            say "/atender"
            wait 1000
        end




        // NEXT REPLY:
        if
        0C29: $NOT_USED = stristr string1 7@ string2 "Empresa de transporte(por celular): Hola, ¿podría ir a buscar una carga a la distribuidora de Sprunk de Whitewood Estates?"
        Then
            say 10@
            wait 1000
        end

        // NEXT REPLY:
        if
        0C29: $NOT_USED = stristr string1 7@ string2 "Empresa de transporte(por celular): Hola, ¿podría ir a buscar una carga a la distribuidora de Sprunk de Whitewood Estates?"
        Then
            say 10@
            wait 1000
        end
        
        
        // NEXT REPLY:
        if
        0C29: $NOT_USED = stristr string1 7@ string2 "Empresa de transporte(por celular): Hola, ¿podría ir a buscar una carga a la distribuidora de Sprunk de Whitewood Estates?"
        Then
            say 10@
            wait 1000
        end       
        
        // NEXT REPLY:
        if
        0C29: $NOT_USED = stristr string1 7@ string2 "Empresa de transporte(por celular): Hola, ¿podría ir a buscar una carga a la distribuidora de Sprunk de Whitewood Estates?"
        Then
            say 10@
            wait 1000
        end       
        /.. you can add more replys here...

    end
end
 

Krc

Active member
Joined
Mar 30, 2018
Messages
193
Reaction score
25
Location
Lithuania
Your script is completly wrong. You need to change it this way:


Code:
{$CLEO .cs}

0000: NOP
0AC8: 10@ = allocate_memory_size 260
0AC8: 11@ = allocate_memory_size 260
0AC8: 12@ = allocate_memory_size 260
0AC8: 13@ = allocate_memory_size 260
0AC8: 14@ = allocate_memory_size 260
0AC8: 15@ = allocate_memory_size 260
0AC8: 16@ = allocate_memory_size 260
0AC8: 17@ = allocate_memory_size 260
0AC8: 18@ = allocate_memory_size 260
0AC8: 19@ = allocate_memory_size 260
0AC8: 20@ = allocate_memory_size 260

0AF4: 10@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Sprunk_Whitewood"
0AF4: 11@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Almacen_Blueberry"
0AF4: 12@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Hunter_Quarry"
0AF4: 13@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Galpon_Bayside"
0AF4: 14@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Bone_County"
0AF4: 15@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: 16@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: 17@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: 18@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: 19@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: 20@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"



REPEAT
    Wait 0
Until 0afa:


0AC8: 0@ = allocate_memory_size 260 // for chatstring


WHILE TRUE
    Wait 0
   
    if
    0B61:  samp is_local_player_spawned
    then
        0B75: samp get_chat_string 99 text_to 0@ prefix_to 1@ color_to 2@ prefix_color_to 3@
       
       
       
       
        // FIRST_REPLY
        0B75: samp get_chat_string 99 text_to 0@ prefix_to 1@ color_to 2@ prefix_color_to 3@
        If
        0C29: $NOT_USED = stristr string1 0@ string2 "Te están llamando por teléfono desde el número: {DBED15}4825{FFFFFF}, usa {DBED15}/atender{FFFFFF} o {DBED15}/colgar{FFFFFF}"
        Then
            say "/atender"
            wait 1000
        end




        // NEXT REPLY:
        if
        0C29: $NOT_USED = stristr string1 7@ string2 "Empresa de transporte(por celular): Hola, ¿podría ir a buscar una carga a la distribuidora de Sprunk de Whitewood Estates?"
        Then
            say 10@
            wait 1000
        end

        // NEXT REPLY:
        if
        0C29: $NOT_USED = stristr string1 7@ string2 "Empresa de transporte(por celular): Hola, ¿podría ir a buscar una carga a la distribuidora de Sprunk de Whitewood Estates?"
        Then
            say 10@
            wait 1000
        end
       
       
        // NEXT REPLY:
        if
        0C29: $NOT_USED = stristr string1 7@ string2 "Empresa de transporte(por celular): Hola, ¿podría ir a buscar una carga a la distribuidora de Sprunk de Whitewood Estates?"
        Then
            say 10@
            wait 1000
        end      
       
        // NEXT REPLY:
        if
        0C29: $NOT_USED = stristr string1 7@ string2 "Empresa de transporte(por celular): Hola, ¿podría ir a buscar una carga a la distribuidora de Sprunk de Whitewood Estates?"
        Then
            say 10@
            wait 1000
        end      
        /.. you can add more replys here...

    end
end
your 7@ goes to nowhere, and why did u use two 0b75?
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,150
Solutions
5
Reaction score
891
Location
Lithuania
PHP:
{$CLEO .cs}

0000: NOP

REPEAT
WAIT 0
UNTIL 0AFA: SAMP_IS_READY

WHILE TRUE
WAIT 0

IF
0B61:  samp is_local_player_spawned
THEN
    0AC8: 0@ = allocate_memory_size 260
    0AC8: 1@ = allocate_memory_size 260
    0B75: samp get_chat_string 99 text_to 0@ prefix_to 1@ color_to 2@ prefix_color_to 3@ 
    
    IF
    0C29: $NOT_USED = stristr string1 0@ string2 "Te est?n llamando por teléfono desde el n?mero: {DBED15}4825{FFFFFF}, usa {DBED15}/atender{FFFFFF} o {DBED15}/colgar{FFFFFF}"
    THEN
        say "/atender"
        wait 1000
    END
    
    IF
    0C29: $NOT_USED = stristr string1 0@ string2 "Empresa de transporte(por celular): Hola, ?podr?a ir a buscar una carga a la distribuidora de Sprunk de Whitewood Estates?"
    THEN
        0AC8: 10@ = allocate_memory_size 260
        0AF4: 10@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Sprunk_Whitewood"
        say 10@
        wait 1000
    END
    
    IF
    0C29: $NOT_USED = stristr string1 0@ string2 "Empresa de transporte(por celular): Hola, ?podr?a ir a buscar una carga a un almacén de Blueberry?"
    THEN
        0AC8: 11@ = allocate_memory_size 260
        0AF4: 11@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Almacen_Blueberry"
        say 11@
        wait 1000
    END

    IF
    0C29: $NOT_USED = stristr string1 0@ string2 "Empresa de transporte(por celular): Hola, ?podr?a ir a buscar una carga a la cantera de Hunter Quarry?"
    THEN
        0AC8: 12@ = allocate_memory_size 260
        0AF4: 12@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Hunter_Quarry"
        say 12@
        wait 1000
    END
  
    IF
    0C29: $NOT_USED = stristr string1 0@ string2 "Empresa de transporte(por celular): Hola, ?podr?a ir a buscar una carga a un galpón de Bayside?"
    THEN
        0AC8: 13@ = allocate_memory_size 260
        0AF4: 13@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Galpon_Bayside"
        say 13@
        wait 1000
    END
  
    IF
    0C29: $NOT_USED = stristr string1 0@ string2 "Empresa de transporte(por celular): Hola, ?podr?a ir a buscar una carga a la cantera de Bone County?"
    THEN
        0AC8: 14@ = allocate_memory_size 260
        0AF4: 14@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Bone_County"
        say 14@
        wait 1000
    END
    
END
 

TheDjCody

Active member
Joined
Sep 6, 2018
Messages
40
Reaction score
5
Your script is completly wrong. You need to change it this way:


Code:
{$CLEO .cs}

0000: NOP
0AC8: 10@ = allocate_memory_size 260
0AC8: 11@ = allocate_memory_size 260
0AC8: 12@ = allocate_memory_size 260
0AC8: 13@ = allocate_memory_size 260
0AC8: 14@ = allocate_memory_size 260
0AC8: 15@ = allocate_memory_size 260
0AC8: 16@ = allocate_memory_size 260
0AC8: 17@ = allocate_memory_size 260
0AC8: 18@ = allocate_memory_size 260
0AC8: 19@ = allocate_memory_size 260
0AC8: 20@ = allocate_memory_size 260

0AF4: 10@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Sprunk_Whitewood"
0AF4: 11@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Almacen_Blueberry"
0AF4: 12@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Hunter_Quarry"
0AF4: 13@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Galpon_Bayside"
0AF4: 14@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Bone_County"
0AF4: 15@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: 16@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: 17@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: 18@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: 19@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: 20@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"



REPEAT
    Wait 0
Until 0afa:


0AC8: 0@ = allocate_memory_size 260 // for chatstring


WHILE TRUE
    Wait 0
  
    if
    0B61:  samp is_local_player_spawned
    then
        0B75: samp get_chat_string 99 text_to 0@ prefix_to 1@ color_to 2@ prefix_color_to 3@
      
      
      
      
        // FIRST_REPLY
        0B75: samp get_chat_string 99 text_to 0@ prefix_to 1@ color_to 2@ prefix_color_to 3@
        If
        0C29: $NOT_USED = stristr string1 0@ string2 "Te están llamando por teléfono desde el número: {DBED15}4825{FFFFFF}, usa {DBED15}/atender{FFFFFF} o {DBED15}/colgar{FFFFFF}"
        Then
            say "/atender"
            wait 1000
        end




        // NEXT REPLY:
        if
        0C29: $NOT_USED = stristr string1 7@ string2 "Empresa de transporte(por celular): Hola, ¿podría ir a buscar una carga a la distribuidora de Sprunk de Whitewood Estates?"
        Then
            say 10@
            wait 1000
        end

        // NEXT REPLY:
        if
        0C29: $NOT_USED = stristr string1 7@ string2 "Empresa de transporte(por celular): Hola, ¿podría ir a buscar una carga a la distribuidora de Sprunk de Whitewood Estates?"
        Then
            say 10@
            wait 1000
        end
      
      
        // NEXT REPLY:
        if
        0C29: $NOT_USED = stristr string1 7@ string2 "Empresa de transporte(por celular): Hola, ¿podría ir a buscar una carga a la distribuidora de Sprunk de Whitewood Estates?"
        Then
            say 10@
            wait 1000
        end     
      
        // NEXT REPLY:
        if
        0C29: $NOT_USED = stristr string1 7@ string2 "Empresa de transporte(por celular): Hola, ¿podría ir a buscar una carga a la distribuidora de Sprunk de Whitewood Estates?"
        Then
            say 10@
            wait 1000
        end     
        /.. you can add more replys here...

    end
end

One problem, when I log into my account, strange texts begin to appear, it's the code.
 

Attachments

  • screenshot_02-01-2019_11-29-59-311.png
    screenshot_02-01-2019_11-29-59-311.png
    504.1 KB · Views: 19
Last edited:

TheDjCody

Active member
Joined
Sep 6, 2018
Messages
40
Reaction score
5
PHP:
{$CLEO .cs}

0000: NOP

REPEAT
WAIT 0
UNTIL 0AFA: SAMP_IS_READY

WHILE TRUE
WAIT 0

IF
0B61:  samp is_local_player_spawned
THEN
    0AC8: 0@ = allocate_memory_size 260
    0AC8: 1@ = allocate_memory_size 260
    0B75: samp get_chat_string 99 text_to 0@ prefix_to 1@ color_to 2@ prefix_color_to 3@
   
    IF
    0C29: $NOT_USED = stristr string1 0@ string2 "Te est?n llamando por teléfono desde el n?mero: {DBED15}4825{FFFFFF}, usa {DBED15}/atender{FFFFFF} o {DBED15}/colgar{FFFFFF}"
    THEN
        say "/atender"
        wait 1000
    END
   
    IF
    0C29: $NOT_USED = stristr string1 0@ string2 "Empresa de transporte(por celular): Hola, ?podr?a ir a buscar una carga a la distribuidora de Sprunk de Whitewood Estates?"
    THEN
        0AC8: 10@ = allocate_memory_size 260
        0AF4: 10@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Sprunk_Whitewood"
        say 10@
        wait 1000
    END
   
    IF
    0C29: $NOT_USED = stristr string1 0@ string2 "Empresa de transporte(por celular): Hola, ?podr?a ir a buscar una carga a un almacén de Blueberry?"
    THEN
        0AC8: 11@ = allocate_memory_size 260
        0AF4: 11@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Almacen_Blueberry"
        say 11@
        wait 1000
    END

    IF
    0C29: $NOT_USED = stristr string1 0@ string2 "Empresa de transporte(por celular): Hola, ?podr?a ir a buscar una carga a la cantera de Hunter Quarry?"
    THEN
        0AC8: 12@ = allocate_memory_size 260
        0AF4: 12@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Hunter_Quarry"
        say 12@
        wait 1000
    END
 
    IF
    0C29: $NOT_USED = stristr string1 0@ string2 "Empresa de transporte(por celular): Hola, ?podr?a ir a buscar una carga a un galpón de Bayside?"
    THEN
        0AC8: 13@ = allocate_memory_size 260
        0AF4: 13@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Galpon_Bayside"
        say 13@
        wait 1000
    END
 
    IF
    0C29: $NOT_USED = stristr string1 0@ string2 "Empresa de transporte(por celular): Hola, ?podr?a ir a buscar una carga a la cantera de Bone County?"
    THEN
        0AC8: 14@ = allocate_memory_size 260
        0AF4: 14@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Bone_County"
        say 14@
        wait 1000
    END
   
END

Crash.
 

TheDjCody

Active member
Joined
Sep 6, 2018
Messages
40
Reaction score
5
Your script is completly wrong. You need to change it this way:


Code:
{$CLEO .cs}

0000: NOP
0AC8: 10@ = allocate_memory_size 260
0AC8: 11@ = allocate_memory_size 260
0AC8: 12@ = allocate_memory_size 260
0AC8: 13@ = allocate_memory_size 260
0AC8: 14@ = allocate_memory_size 260
0AC8: 15@ = allocate_memory_size 260
0AC8: 16@ = allocate_memory_size 260
0AC8: 17@ = allocate_memory_size 260
0AC8: 18@ = allocate_memory_size 260
0AC8: 19@ = allocate_memory_size 260
0AC8: 20@ = allocate_memory_size 260

0AF4: 10@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Sprunk_Whitewood"
0AF4: 11@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Almacen_Blueberry"
0AF4: 12@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Hunter_Quarry"
0AF4: 13@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Galpon_Bayside"
0AF4: 14@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Bone_County"
0AF4: 15@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: 16@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: 17@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: 18@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: 19@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: 20@ = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"



REPEAT
    Wait 0
Until 0afa:


0AC8: 0@ = allocate_memory_size 260 // for chatstring


WHILE TRUE
    Wait 0
   
    if
    0B61:  samp is_local_player_spawned
    then
        0B75: samp get_chat_string 99 text_to 0@ prefix_to 1@ color_to 2@ prefix_color_to 3@
       
       
       
       
        // FIRST_REPLY
        0B75: samp get_chat_string 99 text_to 0@ prefix_to 1@ color_to 2@ prefix_color_to 3@
        If
        0C29: $NOT_USED = stristr string1 0@ string2 "Te están llamando por teléfono desde el número: {DBED15}4825{FFFFFF}, usa {DBED15}/atender{FFFFFF} o {DBED15}/colgar{FFFFFF}"
        Then
            say "/atender"
            wait 1000
        end




        // NEXT REPLY:
        if
        0C29: $NOT_USED = stristr string1 7@ string2 "Empresa de transporte(por celular): Hola, ¿podría ir a buscar una carga a la distribuidora de Sprunk de Whitewood Estates?"
        Then
            say 10@
            wait 1000
        end

        // NEXT REPLY:
        if
        0C29: $NOT_USED = stristr string1 7@ string2 "Empresa de transporte(por celular): Hola, ¿podría ir a buscar una carga a la distribuidora de Sprunk de Whitewood Estates?"
        Then
            say 10@
            wait 1000
        end
       
       
        // NEXT REPLY:
        if
        0C29: $NOT_USED = stristr string1 7@ string2 "Empresa de transporte(por celular): Hola, ¿podría ir a buscar una carga a la distribuidora de Sprunk de Whitewood Estates?"
        Then
            say 10@
            wait 1000
        end      
       
        // NEXT REPLY:
        if
        0C29: $NOT_USED = stristr string1 7@ string2 "Empresa de transporte(por celular): Hola, ¿podría ir a buscar una carga a la distribuidora de Sprunk de Whitewood Estates?"
        Then
            say 10@
            wait 1000
        end      
        /.. you can add more replys here...

    end
end


I made a mistake that's why these strange texts appear, now it works, thank you.
 
Status
Not open for further replies.
Top