Witam, napisałem skrypt na kamerę z wnętrza pojazdu, z kilkoma dodatkowymi funkcjami. Tylko, że mam problem, bo po naciśnięciu przecinka (klawisza odpowiedzialnego za włączanie tej kamery) gra się zawiesza. Próbowałem już kilka razy poprawiać ten skrypt, ale bez skutku. Możliwe że jest tu jakiś głupi błąd, ale ja już nie mam pojęcia co jest nie tak. Byłbym wdzięczny gdyby ktoś mógł pomóc. Skrypt wygląda tak:
Kod:
//-------------MAIN---------------

thread 
'NONAME' 
0@ = 0.5 
1@ = -0.75 
2@ = 0.666 
3@ = 0.0 
4@ = 180.0 
5@ = 0.0 
6@ = 0.0 
7@ = -0.1 
8@ = 0.5 

:NONAME_101
wait 
0 
if 
   
Player.Defined(0)
else_jump 
@NONAME_101 
if 
and
   Actor.Driving($PLAYER_ACTOR)
0AB0:   key_pressed 188 
else_jump 
@NONAME_101 
067C: put_camera_on_actor $PLAYER_ACTOR with_offset 0@ 1@ 2@ rotation 3@ 4@ 5@ 6@ 2 
03C0: 9@ = actor $PLAYER_ACTOR car 
10@ = Car.Model(9@)
07E4: get_model 10@ dimensions_cornerA_to 11@ 12@ 13@ dimensions_cornerB_to 14@ 15@ 16@ 
jump 
@NONAME_215 

:NONAME_215
if 
8AB0:   not key_pressed 192 
else_jump 
@NONAME_313 
if 
8AB0:   not key_pressed 9 
else_jump 
@NONAME_723 
if 
8AB0:   not key_pressed 69 
else_jump 
@NONAME_1057 
if 
8AB0:   not key_pressed 81 
else_jump 
@NONAME_1151 
if 
8AB0:   not key_pressed 90 
else_jump 
@NONAME_1245 
if 
8AB0:   not key_pressed 67 
else_jump 
@NONAME_1349 
jump 
@NONAME_1453 

:NONAME_313
wait 
0  
if 
8AB0:   not key_pressed 192 
else_jump 
@NONAME_396 
067C: put_camera_on_actor $PLAYER_ACTOR with_offset 0@ 1@ 2@ rotation 3@ 4@ 5@ 6@ 2 
jump 
@NONAME_1453 

:NONAME_396
if 
and
0AB0:   key_pressed 192 
0AB0:   key_pressed 104 
   not 
1@ >= 3.0 
else_jump 
@NONAME_436 
1@ += 0.1 

:NONAME_436
if 
and
0AB0:   key_pressed 192 
0AB0:   key_pressed 101 
  1@ > -3.0 
else_jump 
@NONAME_476 
1@ -= 0.1 

:NONAME_476
if 
and
0AB0:   key_pressed 192 
0AB0:   key_pressed 102 
   not 
0@ >= 3.0 
else_jump 
@NONAME_516 
0@ += 0.05 

:NONAME_516
if 
and
0AB0:   key_pressed 192 
0AB0:   key_pressed 100 
  0@ > -3.0 
else_jump 
@NONAME_556 
0@ -= 0.05 

:NONAME_556
if 
and
0AB0:   key_pressed 192 
0AB0:   key_pressed 103 
   not 
2@ >= 3.0 
else_jump 
@NONAME_596 
2@ += 0.05 

:NONAME_596
if 
and
0AB0:   key_pressed 192 
0AB0:   key_pressed 105 
  2@ > -3.0 
else_jump 
@NONAME_636 
2@ -= 0.05 

:NONAME_636
if 
and
0AB0:   key_pressed 192 
0AB0:   key_pressed 98 
else_jump 
@NONAME_313 
0@ = 0.5 
1@ = -0.75 
2@ = 0.666 
3@ = 0.0 
7@ = -0.1 
8@ = 0.5 
jump 
@NONAME_313 

:NONAME_723
wait 

0679: put_camera_on_car 9@ with_offset 0.0 7@ 8@ rotation 0.0 -180.0 0.0 0.0 2 
if 
8AB0:   not key_pressed 9 
else_jump 
@NONAME_815 
067C: put_camera_on_actor $PLAYER_ACTOR with_offset 0@ 1@ 2@ rotation 3@ 4@ 5@ 6@ 2 
jump 
@NONAME_1453 

:NONAME_815
if 
and
0AB0:   key_pressed 9 
0AB0:   key_pressed 104 
   not 
7@ >= 3.0 
else_jump 
@NONAME_854 
7@ += 0.1 

:NONAME_854
if 
and
0AB0:   key_pressed 9 
0AB0:   key_pressed 101 
  7@ > -3.0 
else_jump 
@NONAME_893 
7@ -= 0.1 

:NONAME_893
if 
and
0AB0:   key_pressed 9 
0AB0:   key_pressed 103 
   not 
8@ >= 3.0 
else_jump 
@NONAME_932 
8@ += 0.05 

:NONAME_932
if 
and
0AB0:   key_pressed 9 
0AB0:   key_pressed 105 
  8@ > -3.0 
else_jump 
@NONAME_971 
8@ -= 0.05 

:NONAME_971
if 
and
0AB0:   key_pressed 9 
0AB0:   key_pressed 98 
else_jump 
@NONAME_723 
0@ = 0.5 
1@ = -0.75 
2@ = 0.666 
3@ = 0.0 
7@ = -0.1 
8@ = 0.5 
jump 
@NONAME_723 

:NONAME_1057
wait 

067C: put_camera_on_actor $PLAYER_ACTOR with_offset 0.01 0.05 2@ rotation 180.0 0.0 0.0 0.0 2 
if 
8AB0:   not key_pressed 69 
else_jump 
@NONAME_1057 
067C: put_camera_on_actor $PLAYER_ACTOR with_offset 0@ 1@ 2@ rotation 3@ 4@ 5@ 6@ 2 
jump 
@NONAME_1453 

:NONAME_1151
wait 

067C: put_camera_on_actor $PLAYER_ACTOR with_offset -0.01 0.05 2@ rotation -180.0 0.0 0.0 0.0 2 
if 
8AB0:   not key_pressed 81 
else_jump 
@NONAME_1151 
067C: put_camera_on_actor $PLAYER_ACTOR with_offset 0@ 1@ 2@ rotation 3@ 4@ 5@ 6@ 2 
jump 
@NONAME_1453 

:NONAME_1245
wait 

11@ -= 0.1 
0679: put_camera_on_car 9@ with_offset 11@ 0.15 0.45 rotation -2.0 -5.0 0.0 0.0 2 
if 
8AB0:   not key_pressed 90 
else_jump 
@NONAME_1245 
067C: put_camera_on_actor $PLAYER_ACTOR with_offset 0@ 1@ 2@ rotation 3@ 4@ 5@ 6@ 2 
jump 
@NONAME_1453 

:NONAME_1349
wait 

14@ += 0.1 
0679: put_camera_on_car 9@ with_offset 14@ 0.15 0.45 rotation 2.0 -5.0 0.0 0.0 2 
if 
8AB0:   not key_pressed 67 
else_jump 
@NONAME_1349 
067C: put_camera_on_actor $PLAYER_ACTOR with_offset 0@ 1@ 2@ rotation 3@ 4@ 5@ 6@ 2 
jump 
@NONAME_1453 

:NONAME_1453
if 
or
0AB0:   key_pressed 190 
00E1:   player 0 pressed_key 15 
   not 
Actor.Driving($PLAYER_ACTOR)
   Actor.Dead($PLAYER_ACTOR)
0741:   actor $PLAYER_ACTOR busted 
else_jump 
@NONAME_215 
Camera.Restore_WithJumpCut
jump 
@NONAME_101