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:
This is the .ini:
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.
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
Last edited: