выдаёт error по кд.

smokingdope2016

Участник
Автор темы
39
2
Код:
{$CLEO}
0000:

:sampav
wait 0
0AFA:  is_samp_available
jf @sampav
0b34: "de" @label
0BDE: pause_thread 0

:label
wait 0
    say "/makegun"
if and
80DF: not actor $PLAYER_ACTOR driving
0B4C:  samp is_dialog_active 199  
jf @error
0B3C:  samp is_dialog_responded id 199 button 1 list_item 1 input_text 70
0B43: samp cmd_ret

:error
print "~r~error" 1000
0B43: samp cmd_ret

почему выдает ошибку?
 

Bili Djin

Активный
137
67
Код:
{$CLEO}
0000:

:sampav
wait 0
0AFA:  is_samp_available
jf @sampav
0b34: "de" @label
0BDE: pause_thread 0

:label
wait 0
    say "/makegun"
if and
80DF: not actor $PLAYER_ACTOR driving
0B4C:  samp is_dialog_active 199
jf @error
0B3C:  samp is_dialog_responded id 199 button 1 list_item 1 input_text 70
0B43: samp cmd_ret

:error
print "~r~error" 1000
0B43: samp cmd_ret

почему выдает ошибку?


CLEO:
{$CLEO}
0000:

:sampav
wait 0
0AFA:  is_samp_available
jf @sampav
0b34: "de" @label
0BDE: pause_thread 0

:label
wait 0
    say "/makegun"
if and
00DF: not actor $PLAYER_ACTOR driving
0B4C:  samp is_dialog_active 199
jf @error
0B3C:  samp is_dialog_responded id 199 button 1 list_item 1 input_text 70
0B43: samp cmd_ret

:error
print "~r~error" 1000
0B43: samp cmd_ret
Вопросы нормально задавай, а не "В чём ошибка?"
Сложно написать "Всегда вылезает print "error"? Буквы платные что ли?
 

smokingdope2016

Участник
Автор темы
39
2
CLEO:
{$CLEO}
0000:

:sampav
wait 0
0AFA:  is_samp_available
jf @sampav
0b34: "de" @label
0BDE: pause_thread 0

:label
wait 0
    say "/makegun"
if and
00DF: not actor $PLAYER_ACTOR driving
0B4C:  samp is_dialog_active 199
jf @error
0B3C:  samp is_dialog_responded id 199 button 1 list_item 1 input_text 70
0B43: samp cmd_ret

:error
print "~r~error" 1000
0B43: samp cmd_ret
Вопросы нормально задавай, а не "В чём ошибка?"
Сложно написать "Всегда вылезает print "error"? Буквы платные что ли?
ну извините что забыл написать, но в твоем исправлении он тоже отправляет error.
 

Bili Djin

Активный
137
67
ну извините что забыл написать, но в твоем исправлении он тоже отправляет error.
Сейчас зайду в самп и фиксану

Сейчас зайду в самп и фиксану
CLEO:
{$CLEO}

0000:

repeat
    wait 0
until not samp.Available()
0B34: samp register_client_command "de" to_label @start

:label
wait 0
0@ == 1
jf @label
00DF:  actor $PLAYER_ACTOR driving
jf @error
say "/makegun"
11@ = SAMP.GetPlayerPing($PLAYER_ACTOR)
11@ += 10
wait 11@
0B4C:  samp is_dialog_active 199
jf @error
0B3C:  samp is_dialog_responded id 199 button 1 list_item 1 input_text 70
0@ = 0
jump @label

:error
0AD1: show_formatted_text_highpriority "~R~Error" time 1000
0@ = 0
jump @label

:start
0@ = 1
samp.CmdRet()
 
Последнее редактирование:

smokingdope2016

Участник
Автор темы
39
2
Сейчас зайду в самп и фиксану


CLEO:
{$CLEO}

0000:

repeat
    wait 0
until not samp.Available()
0B34: samp register_client_command "de" to_label @start

:label
wait 0
0@ == 1
jf @label
00DF:  actor $PLAYER_ACTOR driving
jf @error
say "/makegun"
11@ = SAMP.GetPlayerPing($PLAYER_ACTOR)
11@ += 10
wait 11@
0B4C:  samp is_dialog_active 199
jf @error
0B3C:  samp is_dialog_responded id 199 button 1 list_item 1 input_text 70
0@ = 0
jump @label

:error
0AD1: show_formatted_text_highpriority "~R~Error" time 1000
0@ = 0
jump @label

:start
0@ = 1
samp.CmdRet()
теперь оно даже не высвечивает макеган
 

smokingdope2016

Участник
Автор темы
39
2
Тебе надо просто на какой-то пункт нажать в диалоге?

И вообще проверь ид диалога. Потому-что error может быть в 2 случаях:
1. Ты не в ТС
2. Не открыт диалог под ид 199
пункт + вписать в него цифру 70, я уже поменял
Код:
00DF:  actor $PLAYER_ACTOR driving
этот опкод на отрицательный,
 

Bili Djin

Активный
137
67