#1 28-09-2013 06:15

AxLoctor
Registered: 28-09-2013
Posts: 1

What i did wrong?

Hi guys, i maded a script to GTA-SA, more specific to SA-MP and it doesn't work. Can somebody tell me what's my mistake? I Tried to do a "On/Off system" checking the "7@" number. If 7@ = 0 the car wasn't locked and jump to lock the car. If 7@ = 1 the car was locked and jump to unlock the car.I put ":MY_37" To check if i'm driving. If i'm not driving, it set 7@ as 0. Thanks.

// This file was decompiled using sascm.ini published by Seemann

{$VERSION 3.1.0027}
{$CLEO .cs}

//-------------MAIN---------------
thread 'MY' 
03C0: 0@ = actor $PLAYER_ACTOR car 
7@ = 0 
wait 0 
jump @MY_37 

:MY_37
wait 2 
if 
   not Actor.Driving($PLAYER_ACTOR)
else_jump @MY_75 
7@ = 0 
wait 0 
jump @MY_37 

:MY_75
wait 0 
if 
  7@ == 0 
else_jump @MY_167 
wait 2 
jump @MY_108 

:MY_108
wait 2 
if 
0AB0:   key_pressed 76 
else_jump @MY_37 
Car.DoorStatus(0@) = 4
Car.SetImmunities(0@, 1, 1, 1, 1, 1)
7@ = 1 
wait 10 
jump @MY_37 

:MY_167
wait 2 
if 
0AB0:   key_pressed 76 
else_jump @MY_37 
Car.DoorStatus(0@) = 1
Car.SetImmunities(0@, 0, 0, 0, 0, 0)
7@ = 0 
wait 10 
jump @MY_37

Last edited by AxLoctor (28-09-2013 15:43)

Offline

Board footer

Powered by FluxBB