Help Auto reply System

TheDjCody

Active Member
Joined
Sep 6, 2018
Messages
33
Likes
7
Points
8
#1
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: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Sprunk_Whitewood"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Almacen_Blueberry"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Hunter_Quarry"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Galpon_Bayside"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Bone_County"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: [email protected] = 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: [email protected] = allocate_memory_size 260
    0AC8: [email protected] = allocate_memory_size 260
    0B75: samp get_chat_string 99 text_to [email protected] prefix_to [email protected] color_to [email protected] prefix_color_to [email protected] 
    If
    0C29: $NOT_USED = stristr string1 [email protected] 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: [email protected] = allocate_memory_size 260
    0AC8: [email protected] = allocate_memory_size 260
    0B75: samp get_chat_string 99 text_to [email protected] prefix_to [email protected] color_to [email protected] prefix_color_to [email protected]
    if
    0C29: $NOT_USED = stristr string1 [email protected] string2 "Empresa de transporte(por celular): Hola, ¿podría ir a buscar una carga a la distribuidora de Sprunk de Whitewood Estates?"
    Then
        say [email protected]
        wait 1000
    else
        jump @Almacen_Blueberry
        end
    end
  
:Almacen_Blueberry
if
0C29: $NOT_USED = stristr string1 [email protected] string2 "Empresa de transporte(por celular): Hola, ¿podría ir a buscar una carga a un almacén de Blueberry?"
    Then
        say [email protected]
        wait 1000
    else
        jump @Hunter_Quarry
    end

  
:Hunter_Quarry
if
    0C29: $NOT_USED = stristr string1 [email protected] string2 "Empresa de transporte(por celular): Hola, ¿podría ir a buscar una carga a la cantera de Hunter Quarry?"
    Then
        say [email protected]
        wait 1000
    else
        jump @Galpon_Bayside
    end
  
:Galpon_Bayside
if
    0C29: $NOT_USED = stristr string1 [email protected] string2 "Empresa de transporte(por celular): Hola, ¿podría ir a buscar una carga a un galpón de Bayside?"
    Then
        say [email protected]
        wait 1000
    else
        jump @Bone_County
    end
  
:Bone_County
if
    0C29: $NOT_USED = stristr string1 [email protected] string2 "Empresa de transporte(por celular): Hola, ¿podría ir a buscar una carga a la cantera de Bone County?"
    Then
        say [email protected]
        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 [email protected] 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

Last edited:

Opcode.eXe

Well-Known Member
Joined
Feb 18, 2013
Messages
1,414
Likes
127
Points
113
Location
( ͡° ͜ʖ ͡°)
Website
www.youtube.com
#2
Your script is completly wrong. You need to change it this way:


Code:
{$CLEO .cs}

0000: NOP
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260

0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Sprunk_Whitewood"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Almacen_Blueberry"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Hunter_Quarry"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Galpon_Bayside"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Bone_County"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"



REPEAT
    Wait 0
Until 0afa:


0AC8: [email protected] = 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 [email protected] prefix_to [email protected] color_to [email protected] prefix_color_to [email protected]
        
        
        
        
        // FIRST_REPLY
        0B75: samp get_chat_string 99 text_to [email protected] prefix_to [email protected] color_to [email protected] prefix_color_to [email protected]
        If
        0C29: $NOT_USED = stristr string1 [email protected] 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 [email protected] string2 "Empresa de transporte(por celular): Hola, ¿podría ir a buscar una carga a la distribuidora de Sprunk de Whitewood Estates?"
        Then
            say [email protected]
            wait 1000
        end

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

    end
end
 

kazkaS

Well-Known Member
Joined
Mar 30, 2018
Messages
143
Likes
14
Points
18
10
#3
Your script is completly wrong. You need to change it this way:


Code:
{$CLEO .cs}

0000: NOP
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260

0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Sprunk_Whitewood"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Almacen_Blueberry"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Hunter_Quarry"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Galpon_Bayside"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Bone_County"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"



REPEAT
    Wait 0
Until 0afa:


0AC8: [email protected] = 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 [email protected] prefix_to [email protected] color_to [email protected] prefix_color_to [email protected]
       
       
       
       
        // FIRST_REPLY
        0B75: samp get_chat_string 99 text_to [email protected] prefix_to [email protected] color_to [email protected] prefix_color_to [email protected]
        If
        0C29: $NOT_USED = stristr string1 [email protected] 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 [email protected] string2 "Empresa de transporte(por celular): Hola, ¿podría ir a buscar una carga a la distribuidora de Sprunk de Whitewood Estates?"
        Then
            say [email protected]
            wait 1000
        end

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

    end
end
your [email protected] goes to nowhere, and why did u use two 0b75?
 

Parazitas

Well-Known Member
Joined
Jan 2, 2017
Messages
830
Likes
45
Points
43
Location
Lithuania
Website
ugbase.eu
10
#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: [email protected] = allocate_memory_size 260
    0AC8: [email protected] = allocate_memory_size 260
    0B75: samp get_chat_string 99 text_to [email protected] prefix_to [email protected] color_to [email protected] prefix_color_to [email protected] 
    
    IF
    0C29: $NOT_USED = stristr string1 [email protected] 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 [email protected] string2 "Empresa de transporte(por celular): Hola, ?podr?a ir a buscar una carga a la distribuidora de Sprunk de Whitewood Estates?"
    THEN
        0AC8: [email protected] = allocate_memory_size 260
        0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Sprunk_Whitewood"
        say [email protected]
        wait 1000
    END
    
    IF
    0C29: $NOT_USED = stristr string1 [email protected] string2 "Empresa de transporte(por celular): Hola, ?podr?a ir a buscar una carga a un almacén de Blueberry?"
    THEN
        0AC8: [email protected] = allocate_memory_size 260
        0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Almacen_Blueberry"
        say [email protected]
        wait 1000
    END

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

TheDjCody

Active Member
Joined
Sep 6, 2018
Messages
33
Likes
7
Points
8
#6
Your script is completly wrong. You need to change it this way:


Code:
{$CLEO .cs}

0000: NOP
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260

0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Sprunk_Whitewood"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Almacen_Blueberry"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Hunter_Quarry"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Galpon_Bayside"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Bone_County"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"



REPEAT
    Wait 0
Until 0afa:


0AC8: [email protected] = 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 [email protected] prefix_to [email protected] color_to [email protected] prefix_color_to [email protected]
      
      
      
      
        // FIRST_REPLY
        0B75: samp get_chat_string 99 text_to [email protected] prefix_to [email protected] color_to [email protected] prefix_color_to [email protected]
        If
        0C29: $NOT_USED = stristr string1 [email protected] 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 [email protected] string2 "Empresa de transporte(por celular): Hola, ¿podría ir a buscar una carga a la distribuidora de Sprunk de Whitewood Estates?"
        Then
            say [email protected]
            wait 1000
        end

        // NEXT REPLY:
        if
        0C29: $NOT_USED = stristr string1 [email protected] string2 "Empresa de transporte(por celular): Hola, ¿podría ir a buscar una carga a la distribuidora de Sprunk de Whitewood Estates?"
        Then
            say [email protected]
            wait 1000
        end
      
      
        // NEXT REPLY:
        if
        0C29: $NOT_USED = stristr string1 [email protected] string2 "Empresa de transporte(por celular): Hola, ¿podría ir a buscar una carga a la distribuidora de Sprunk de Whitewood Estates?"
        Then
            say [email protected]
            wait 1000
        end     
      
        // NEXT REPLY:
        if
        0C29: $NOT_USED = stristr string1 [email protected] string2 "Empresa de transporte(por celular): Hola, ¿podría ir a buscar una carga a la distribuidora de Sprunk de Whitewood Estates?"
        Then
            say [email protected]
            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

Last edited:
OP
OP
T

TheDjCody

Active Member
Joined
Sep 6, 2018
Messages
33
Likes
7
Points
8
#7
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: [email protected] = allocate_memory_size 260
    0AC8: [email protected] = allocate_memory_size 260
    0B75: samp get_chat_string 99 text_to [email protected] prefix_to [email protected] color_to [email protected] prefix_color_to [email protected]
   
    IF
    0C29: $NOT_USED = stristr string1 [email protected] 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 [email protected] string2 "Empresa de transporte(por celular): Hola, ?podr?a ir a buscar una carga a la distribuidora de Sprunk de Whitewood Estates?"
    THEN
        0AC8: [email protected] = allocate_memory_size 260
        0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Sprunk_Whitewood"
        say [email protected]
        wait 1000
    END
   
    IF
    0C29: $NOT_USED = stristr string1 [email protected] string2 "Empresa de transporte(por celular): Hola, ?podr?a ir a buscar una carga a un almacén de Blueberry?"
    THEN
        0AC8: [email protected] = allocate_memory_size 260
        0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Almacen_Blueberry"
        say [email protected]
        wait 1000
    END

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

TheDjCody

Active Member
Joined
Sep 6, 2018
Messages
33
Likes
7
Points
8
#8
Your script is completly wrong. You need to change it this way:


Code:
{$CLEO .cs}

0000: NOP
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260
0AC8: [email protected] = allocate_memory_size 260

0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Sprunk_Whitewood"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Almacen_Blueberry"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Hunter_Quarry"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Galpon_Bayside"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Bone_County"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"
0AF4: [email protected] = read_string_from_ini_file "cleo\trans.ini" section "Viajes" key "Test"



REPEAT
    Wait 0
Until 0afa:


0AC8: [email protected] = 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 [email protected] prefix_to [email protected] color_to [email protected] prefix_color_to [email protected]
       
       
       
       
        // FIRST_REPLY
        0B75: samp get_chat_string 99 text_to [email protected] prefix_to [email protected] color_to [email protected] prefix_color_to [email protected]
        If
        0C29: $NOT_USED = stristr string1 [email protected] 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 [email protected] string2 "Empresa de transporte(por celular): Hola, ¿podría ir a buscar una carga a la distribuidora de Sprunk de Whitewood Estates?"
        Then
            say [email protected]
            wait 1000
        end

        // NEXT REPLY:
        if
        0C29: $NOT_USED = stristr string1 [email protected] string2 "Empresa de transporte(por celular): Hola, ¿podría ir a buscar una carga a la distribuidora de Sprunk de Whitewood Estates?"
        Then
            say [email protected]
            wait 1000
        end
       
       
        // NEXT REPLY:
        if
        0C29: $NOT_USED = stristr string1 [email protected] string2 "Empresa de transporte(por celular): Hola, ¿podría ir a buscar una carga a la distribuidora de Sprunk de Whitewood Estates?"
        Then
            say [email protected]
            wait 1000
        end      
       
        // NEXT REPLY:
        if
        0C29: $NOT_USED = stristr string1 [email protected] string2 "Empresa de transporte(por celular): Hola, ¿podría ir a buscar una carga a la distribuidora de Sprunk de Whitewood Estates?"
        Then
            say [email protected]
            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.
 
Top