#1 27-05-2014 15:01

Nikkolaiy
Registered: 27-05-2014
Posts: 2

Клео нужна помощь

Доброго дня. Вообщем, нашел два скрипта, решил часть одного переместить в другой. вообщем так:
У меня два скрипта. Спидометр и вывод цифрами ХПчела\бронь\ХПкара.
Я немного понял как работает скрипт цифры, вырезал от туда ХПкара, переместил в скрипт спидометра, вроде-бы все норм, но выдает ошибку...

вот код самого скрипта (вывод цифрами)

// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
0662: printstring "MADE BY FYP" 
thread "STATUS_INDICATORS" 

:STATUS_INDICATORS_36
wait 0 
if 
   Player.Defined(0)
else_jump @STATUS_INDICATORS_36 
if 
   not Actor.Driving($PLAYER_ACTOR)
else_jump @STATUS_INDICATORS_330 
04DD: 2@ = actor $PLAYER_ACTOR armour 
if 
  2@ >= 1 
else_jump @STATUS_INDICATORS_242 
1@ = Actor.Health($PLAYER_ACTOR)
03F0: enable_text_draw 1 
0349: set_text_draw_font 3 
03E4: set_text_draw_align_right 1 
033F: set_text_draw_letter_size 0.5 1.2 
0340: set_text_draw_RGBA 180 25 29 255 
081C: draw_text_outline 1 RGBA 0 0 0 255 
045A: draw_text_1number 435.0 240.0 GXT 'NUMBER' number 1@  // ~1~   
0349: set_text_draw_font 3 
03E4: set_text_draw_align_right 1 
033F: set_text_draw_letter_size 0.5 1.2 
081C: draw_text_outline 1 RGBA 0 0 0 255 
045A: draw_text_1number 435.0 265.0 GXT 'NUMBER' number 2@  // ~1~
jump @STATUS_INDICATORS_36 

:STATUS_INDICATORS_242
1@ = Actor.Health($PLAYER_ACTOR)
03F0: enable_text_draw 1 
0349: set_text_draw_font 3 
03E4: set_text_draw_align_right 1 
033F: set_text_draw_letter_size 0.5 1.2 
0340: set_text_draw_RGBA 180 25 29 255 
081C: draw_text_outline 1 RGBA 0 0 0 255 
045A: draw_text_1number 435.0 240.0 GXT 'NUMBER' number 1@  // ~1~
jump @STATUS_INDICATORS_36 

:STATUS_INDICATORS_330
wait 0 
if 
   Actor.Driving($PLAYER_ACTOR)
else_jump @STATUS_INDICATORS_36 
if 
   Actor.InCar($PLAYER_ACTOR, 0@)
0AA0: gosub_if_false @STATUS_INDICATORS_618 
04DD: 2@ = actor $PLAYER_ACTOR armour 
3@ = Car.Health(0@)
1@ = Actor.Health($PLAYER_ACTOR)
03F0: enable_text_draw 1 
0349: set_text_draw_font 3 
03E4: set_text_draw_align_right 1 
033F: set_text_draw_letter_size 0.5 1.2 
0340: set_text_draw_RGBA 180 25 29 255 
081C: draw_text_outline 1 RGBA 0 0 0 255 
045A: draw_text_1number 435.0 240.0 GXT 'NUMBER' number 1@  // ~1~
0349: set_text_draw_font 3 
03E4: set_text_draw_align_right 1 
033F: set_text_draw_letter_size 0.5 1.2 
0340: set_text_draw_RGBA 150 255 0 255 
081C: draw_text_outline 1 RGBA 0 0 0 255 
045A: draw_text_1number 435.0 254.0 GXT 'NUMBER' number 3@  // ~1~
if 
  2@ >= 1 
else_jump @STATUS_INDICATORS_330 
0349: set_text_draw_font 3 
03E4: set_text_draw_align_right 1 
033F: set_text_draw_letter_size 0.5 1.2 
081C: draw_text_outline 1 RGBA 0 0 0 255 
045A: draw_text_1number 435.0 265.0 GXT 'NUMBER' number 2@  // ~1~
jump @STATUS_INDICATORS_330 

:STATUS_INDICATORS_618
0@ = Actor.CurrentCar($PLAYER_ACTOR)
return 

Вот код спидометра.

// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
0000: NOP 
0A95: enable_thread_saving 

:NONAME_4
wait 0 
if and
   Actor.Driving($PLAYER_ACTOR)
  $ACTIVE_INTERIOR == 0 
84A7:   not actor $PLAYER_ACTOR driving_boat 
else_jump @NONAME_4 
0811: 1@ = actor $PLAYER_ACTOR used_car 
0390: load_txd_dictionary "SPEED" 
038F: load_texture "STRELK" as 15 // Load dictionary with 0390 first 
038F: load_texture "CIF" as 16 // Load dictionary with 0390 first 
038F: load_texture "CIFN" as 17 // Load dictionary with 0390 first 
038F: load_texture "STRELKN" as 18 // Load dictionary with 0390 first 
038F: load_texture "GLASSC" as 19 // Load dictionary with 0390 first 
wait 1000 
jump @NONAME_126 

:NONAME_126
wait 0 
if and
   Actor.Driving($PLAYER_ACTOR)
  $ACTIVE_INTERIOR == 0 
else_jump @NONAME_582 
00BF: 12@ = current_time_hours, 13@ = current_time_minutes 
if and
  12@ >= 6 
  20 > 12@ 
else_jump @NONAME_354 
02E3: 2@ = car 1@ speed 
2@ *= 2.5
03F0: enable_text_draw 0 
03E3: set_texture_to_be_drawn_antialiased 1 
038D: draw_texture 16 position 430.0 335.0 size 241.0 220.0 RGBA 255 255 255 255 
03E3: set_texture_to_be_drawn_antialiased 1 
074B: draw_texture 15 position 430.0 335.0 scale 241.0 220.0 angle 2@ color_RGBA 255 255 255 255 
if 
03C9:   car 1@ damaged 
else_jump @NONAME_126 
03E3: set_texture_to_be_drawn_antialiased 1 
038D: draw_texture 19 position 430.0 335.0 size 241.0 220.0 RGBA 255 255 255 255 
jump @NONAME_126 

:NONAME_354
wait 0 
if and
   Actor.Driving($PLAYER_ACTOR)
  $ACTIVE_INTERIOR == 0 
else_jump @NONAME_582 
00BF: 12@ = current_time_hours, 13@ = current_time_minutes 
if or
  12@ >= 20 
  6 > 12@ 
else_jump @NONAME_126 
02E3: 2@ = car 1@ speed 
2@ *= 2.5 
03F0: enable_text_draw 1 
03E3: set_texture_to_be_drawn_antialiased 1 
038D: draw_texture 17 position 430.0 335.0 size 241.0 220.0 RGBA 255 255 255 255 
03E3: set_texture_to_be_drawn_antialiased 1 
074B: draw_texture 18 position 430.0 335.0 scale 241.0 220.0 angle 2@ color_RGBA 255 255 255 255 
if 
03C9:   car 1@ damaged 
else_jump @NONAME_354 
03E3: set_texture_to_be_drawn_antialiased 1 
038D: draw_texture 19 position 430.0 335.0 size 241.0 220.0 RGBA 255 255 255 255 
jump @NONAME_354 

:NONAME_582
wait 0 
03F0: enable_text_draw 0 
0391: release_textures 
jump @NONAME_4 

И вот я добавил в самый конец скрипта спидометра вот эти строки из скрипта цифры

:STATUS_INDICATORS_330
wait 0 
if 
   Actor.Driving($PLAYER_ACTOR)
else_jump @STATUS_INDICATORS_330 
if 
   Actor.InCar($PLAYER_ACTOR, 6@)
0AA0: gosub_if_false @STATUS_INDICATORS_618 
04DD: 5@ = Car.Health(6@)
03F0: enable_text_draw 1 
0349: set_text_draw_font 3 
03E4: set_text_draw_align_right 1 
033F: set_text_draw_letter_size 0.5 1.2 
0340: set_text_draw_RGBA 150 255 0 255 
081C: draw_text_outline 1 RGBA 0 0 0 255 
045A: draw_text_1number 435.0 254.0 GXT 'NUMBER' number 5@  // ~1~


:STATUS_INDICATORS_618
6@ = Actor.CurrentCar($PLAYER_ACTOR)
return 

Но мне выдает ошибку 'Недостаточно параметров. Ожидалось 2 параметра.' на данной строчке. Как мне исправить это?

04DD: 5@ = Car.Health(6@)

Offline

#2 28-05-2014 05:58

wmysterio
Registered: 04-03-2011
Posts: 215
Website

Re: Клео нужна помощь

Nikkolaiy wrote:

Но мне выдает ошибку 'Недостаточно параметров. Ожидалось 2 параметра.' на данной строчке. Как мне исправить это?

04DD: 5@ = Car.Health(6@)

номер опкода здесь явно лишний. Нужно убрать 04DD:.

Offline

#3 03-09-2014 12:02

reube123
Registered: 03-09-2014
Posts: 1

Re: Клео нужна помощь

На этом форуме не рассматриваются вопросы, связанные со скриптами для SAMP.


Unlike scam 98-365 braindumps dumps and itil v3 dumps training program, our best Brandeis University and CISCO online training courses provide you quick success in first try of icnd University of California, Los Angeles.

Offline

Board footer

Powered by FluxBB