Вопросы по CLEO-скриптингу

DoneUp

Новичок
28
0
PHP:
 {$CLEO}
0000:
wait 3000
0AF8: samp add_message_to_chat "[Done]: Закупка оружий загружена"  color 0xFFFFFF
if not 0@ = SAMP.Base()
then 
0A93: end_custom_thread
end 
while not SAMP.Available()
wait 100
end
 
 
:329
wait 0 
0B34: samp register_client_command 'gogun' to_label @372 
jump @329 
 
:372
wait 0 
0AF8: samp add_message_to_chat "Закупка оружий активирована"    color 0xFFFF00
wait 100
0B49: samp set_current_dialog_list_item 3@
wait 1000
0B49: samp set_current_dialog_list_item 3@
wait 1000
0B49: samp set_current_dialog_list_item 5@
wait 1000
0B49: samp set_current_dialog_list_item 3@
wait 1000
0B49: samp set_current_dialog_list_item 6@
wait 1000
0B49: samp set_current_dialog_list_item 3@
wait 1000
0B49: samp set_current_dialog_list_item 10@
wait 1000
0B49: samp set_current_dialog_list_item 3@
wait 1000
0B49: samp set_current_dialog_list_item 11@
wait 1000
0B49: samp set_current_dialog_list_item 3@
SAMP.CmdRet
Все работает, только пункты в диалоге не выберает, помогите, что добавить нужно?
 

FantaZzy

Новичок
20
0
Подскажите, как узнать координаты игрока, и записать их в файл/буфер обмена?;(
 

SeJIya

Новичок
45
2
PHP:
 {$CLEO}
0000:
wait 3000
0AF8: samp add_message_to_chat "[Done]: Закупка оружий загружена"  color 0xFFFFFF
if not 0@ = SAMP.Base()
then
0A93: end_custom_thread
end
while not SAMP.Available()
wait 100
end
 
 
:329
wait 0
0B34: samp register_client_command 'gogun' to_label @372
jump @329
 
:372
wait 0
0AF8: samp add_message_to_chat "Закупка оружий активирована"    color 0xFFFF00
wait 100
0B49: samp set_current_dialog_list_item 3@
wait 1000
0B49: samp set_current_dialog_list_item 3@
wait 1000
0B49: samp set_current_dialog_list_item 5@
wait 1000
0B49: samp set_current_dialog_list_item 3@
wait 1000
0B49: samp set_current_dialog_list_item 6@
wait 1000
0B49: samp set_current_dialog_list_item 3@
wait 1000
0B49: samp set_current_dialog_list_item 10@
wait 1000
0B49: samp set_current_dialog_list_item 3@
wait 1000
0B49: samp set_current_dialog_list_item 11@
wait 1000
0B49: samp set_current_dialog_list_item 3@
SAMP.CmdRet
Все работает, только пункты в диалоге не выберает, помогите, что добавить нужно?
Переменные 3@, 5@, 6@, 10@, 11@ равны нулю. Прочитайте описание опкода http://www.blasthack.net/sfdoc/op1.html#op0B49
Так же стоит обратить внимание на то, что комманда gogun, пытается постоянно регистрироваться, в консоле можно наблюдать сообщение по типу: "Комманда gogun уже существует"
 

DoneUp

Новичок
28
0
Переменные 3@, 5@, 6@, 10@, 11@ равны нулю. Прочитайте описание опкода http://www.blasthack.net/sfdoc/op1.html#op0B49
Так же стоит обратить внимание на то, что комманда gogun, пытается постоянно регистрироваться, в консоле можно наблюдать сообщение по типу: "Комманда gogun уже существует"
3@, 5@, 6@, 10@, 11@ как сделать норм? Я прост новичок)
 

fiendshadow

3LFhocV726q7pKWWky2vv3W38Dm9sGJV86
Проверенный
455
122
3@, 5@, 6@, 10@, 11@ как сделать норм? Я прост новичок)


PHP:
wait 0
0AF8: samp add_message_to_chat "Закупка оружий активирована"    color 0xFFFF00
wait 100
0B49: samp set_current_dialog_list_item 3
wait 1000
0B49: samp set_current_dialog_list_item 3
wait 1000
0B49: samp set_current_dialog_list_item 5
wait 1000
0B49: samp set_current_dialog_list_item 3
wait 1000
0B49: samp set_current_dialog_list_item 6
wait 1000
0B49: samp set_current_dialog_list_item 3
wait 1000
0B49: samp set_current_dialog_list_item 10
wait 1000
0B49: samp set_current_dialog_list_item 3
wait 1000
0B49: samp set_current_dialog_list_item 11
wait 1000
0B49: samp set_current_dialog_list_item 3
SAMP.CmdRet
Я делал так ;)
 

FantaZzy

Новичок
20
0
PHP:
 {$CLEO}
0000:
wait 3000
0AF8: samp add_message_to_chat "[Done]: Закупка оружий загружена"  color 0xFFFFFF
if not 0@ = SAMP.Base()
then
0A93: end_custom_thread
end
while not SAMP.Available()
wait 100
end
 
 
:329
wait 0
0B34: samp register_client_command 'gogun' to_label @372
jump @329
 
:372
wait 0
0AF8: samp add_message_to_chat "Закупка оружий активирована"    color 0xFFFF00
wait 100
0B49: samp set_current_dialog_list_item 3@
wait 1000
0B49: samp set_current_dialog_list_item 3@
wait 1000
0B49: samp set_current_dialog_list_item 5@
wait 1000
0B49: samp set_current_dialog_list_item 3@
wait 1000
0B49: samp set_current_dialog_list_item 6@
wait 1000
0B49: samp set_current_dialog_list_item 3@
wait 1000
0B49: samp set_current_dialog_list_item 10@
wait 1000
0B49: samp set_current_dialog_list_item 3@
wait 1000
0B49: samp set_current_dialog_list_item 11@
wait 1000
0B49: samp set_current_dialog_list_item 3@
SAMP.CmdRet
Все работает, только пункты в диалоге не выберает, помогите, что добавить нужно?

Тебе повезло..... у меня вообще крашит, когда закинуть сампфункс в корневую папку :wall:
 

DoneUp

Новичок
28
0
PHP:
wait 0
0AF8: samp add_message_to_chat "Закупка оружий активирована"    color 0xFFFF00
wait 100
0B49: samp set_current_dialog_list_item 3
wait 1000
0B49: samp set_current_dialog_list_item 3
wait 1000
0B49: samp set_current_dialog_list_item 5
wait 1000
0B49: samp set_current_dialog_list_item 3
wait 1000
0B49: samp set_current_dialog_list_item 6
wait 1000
0B49: samp set_current_dialog_list_item 3
wait 1000
0B49: samp set_current_dialog_list_item 10
wait 1000
0B49: samp set_current_dialog_list_item 3
wait 1000
0B49: samp set_current_dialog_list_item 11
wait 1000
0B49: samp set_current_dialog_list_item 3
SAMP.CmdRet
Я делал так ;)

Непомогло, серавно не выберает
 

FantaZzy

Новичок
20
0
Как в "0AD1: show_formatted_text_highpriority "Miner bot activated!This is alpha version by FantaZzy " time 5000 1" сделать фразу Miner bot activated красной?
 

MISTER_GONWIK

Всефорумный гонщик
Всефорумный модератор
1,261
1,743
0AD1: show_formatted_text_highpriority "~r~Miner bot activated!~w~This is alpha version by FantaZzy " time 5000 1
 

FantaZzy

Новичок
20
0
Кто поможет в исправлении кода? Вот кусок кода :
Код:
0AF0: 1@ = get_int_from_ini_file "CLEO\COORDS_GO.INI" section "FIRST" key "X"
0AF0: 2@ = get_int_from_ini_file "CLEO\COORDS_GO.INI" section "FIRST" key "Y"
0AF0: 3@ = get_int_from_ini_file "CLEO\COORDS_GO.INI" section "FIRST" key "Z"
Вот код из ini файла:
Код:
[FIRST]
X =633.6808
Y =857.9966
Z =-42.5359
Но при активации (
Код:
05D3: task_go_straight_to_coord $PLAYER_ACTOR coord 1@ 2@ 3@ mode 6 time 500000
)
Игрок идет кудато за пределы мира, не в точку, а в океан, далекоо далекоо.... Помогите исправить, в чем проблема? Наверное в опкоде 0af0 надо заменить int на другое значение, но не знаю какое.
 

iAmerican

Известный
Друг
614
257
PHP:
wait 0
0AF8: samp add_message_to_chat "Закупка оружий активирована"    color 0xFFFF00
wait 100
0B49: samp set_current_dialog_list_item 3
wait 1000
0B49: samp set_current_dialog_list_item 3
wait 1000
0B49: samp set_current_dialog_list_item 5
wait 1000
0B49: samp set_current_dialog_list_item 3
wait 1000
0B49: samp set_current_dialog_list_item 6
wait 1000
0B49: samp set_current_dialog_list_item 3
wait 1000
0B49: samp set_current_dialog_list_item 10
wait 1000
0B49: samp set_current_dialog_list_item 3
wait 1000
0B49: samp set_current_dialog_list_item 11
wait 1000
0B49: samp set_current_dialog_list_item 3
SAMP.CmdRet
Я делал так ;)


Как сделать что бы он не только устанавливал , но и нажимал на него?