Ошибка при компиляции SB.

chapo

🫡 В армии с 17.10.2023. В ЛС НЕ ОТВЕЧАЮ
Автор темы
Друг
8,747
11,157
Хелп, вроде все опкоды установил, но все-ровно выдает ошибку.
upload_2019-5-29_19-27-11.png

CLEO:
{$CLEO}
if not 0@ = SAMP.Base()
then 0A93: end_custom_thread
end
while not SAMP.Available()
wait 100
end

0B34: samp register_client_command "ud" to_label @usedrugs
:usedrugs
0B35: samp 20@ = get_last_command_params
if 0AD4: 25@ = scan_string 20@ format "%d" 21@
then
0AF9: samp say_msg "/usedrugs %d " 21@
end
end
0B43: cmd_ret
 

woksonal

Известный
Проверенный
268
154
CLEO:
{$CLEO}
0000:
if not 0@ = SAMP.Base()
then 0A93: end_custom_thread
end
while not SAMP.Available()
wait 100
end

0B34: samp register_client_command "ud" to_label @usedrugs
while true
wait 0
end

:usedrugs
0B35: samp 20@ = get_last_command_params
if 0AD4: 25@ = scan_string 20@ format "%d" 21@
then
0AF9: samp say_msg "/usedrugs %d " 21@
end
0B43: cmd_ret
 

chapo

🫡 В армии с 17.10.2023. В ЛС НЕ ОТВЕЧАЮ
Автор темы
Друг
8,747
11,157
здесь ошибок нет. проверь другие скрипты
уже нашел, спасибо.

здесь ошибок нет. проверь другие скрипты
Я так понимаю, что ты шаришь, так вот, что тут не так?) (хочу в один скрипт несколько команд запихать)
CLEO:
{$CLEO}
0000:
if not 0@ = SAMP.Base()
then 0A93: end_custom_thread
end
while not SAMP.Available()
wait 100
end

0B34: samp register_client_command "ud" to_label @usedrugs
while true
wait 0
end

:usedrugs
0B35: samp 20@ = get_last_command_params
if 0AD4: 25@ = scan_string 20@ format "%d" 21@
then
0AF9: samp say_msg "/usedrugs %d " 21@
end
0B43: cmd_ret

0B34: samp register_client_command "fih" to_label @findihouse
while true
wait 0
end

:findihouse
0B35: samp 20@ = get_last_command_params
if 0AD4: 25@ = scan_string 20@ format "%d" 21@
then
0AF9: samp say_msg "/findihouse %d " 21@
end
0B43: cmd_ret
 

woksonal

Известный
Проверенный
268
154
Код:
{$CLEO}
0000:
if not 0@ = SAMP.Base()
then 0A93: end_custom_thread
end
while not SAMP.Available()
wait 100
end

0B34: samp register_client_command "ud" to_label @usedrugs
0B34: samp register_client_command "fih" to_label @findihouse

while true
wait 0
end

:usedrugs
0B35: samp 20@ = get_last_command_params
if 0AD4: 25@ = scan_string 20@ format "%d" 21@
then
0AF9: samp say_msg "/usedrugs %d " 21@
end
0B43: cmd_ret



:findihouse
0B35: samp 20@ = get_last_command_params
if 0AD4: 25@ = scan_string 20@ format "%d" 21@
then
0AF9: samp say_msg "/findihouse %d " 21@
end
0B43: cmd_ret
 
  • Нравится
Реакции: chapo