#1 Re: Вопросы по скриптингу » Один вопрос » 20-04-2011 02:52

Я только начинаю в CLEO-скриптинге...
Вот попытался сделать круиз контроль на SHIFT, но у меня вылетает.
Что не так?

// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007

{$VERSION 3.1.0027}
{$CLEO .CS}

//-------------MAIN---------------
0000: NOP 
thread 'GTAW' 
wait 2000 
if 
   Player.Defined($PLAYER_CHAR)
else_jump @GTAW_131 

:GTAW_34
if and
   Actor.Driving($PLAYER_ACTOR)
847A:   not actor $PLAYER_ACTOR driving_bike 
84A7:   not actor $PLAYER_ACTOR driving_boat 
84A9:   not actor $PLAYER_ACTOR driving_heli 
   not Actor.DrivingPlane($PLAYER_ACTOR)
84C8:   not actor $PLAYER_ACTOR driving_flying_vehicle 
89AE:   not actor $PLAYER_ACTOR driving_train 
else_jump @GTAW_131 
03C0: 0@ = actor $PLAYER_ACTOR car 
02E3: 1@ = car 0@ speed 
if and
   Actor.Driving($PLAYER_ACTOR)
   not Car.Wrecked(0@)
00E1:   player 0 pressed_key 16 
else_jump @GTAW_131 
Car.SetMaxSpeed(0@, 1@)

:GTAW_131
jump @GTAW_34

Board footer

Powered by FluxBB