Problem with locking vehicle doors
#3

Quote:
Originally Posted by Tagathron
Посмотреть сообщение
You're not checking anything at this line:
pawn Код:
if (gData[G_PACKAGE_STARTED])
gData[G_PACKAGE_STARTED] is just an array but you're not doing something like:
pawn Код:
f (gData[G_PACKAGE_STARTED]==1)
or similar,that would check something,this way it doesn't.

If the driver's door unlocks after leaving the vehicle try adding code to OnPlayerExitVehicle() which will set the door paramater to locked.
You are wrong. You don't have to add the check for == 1. I'm using Boolean which is true/false. The way I check means it is true and if adding ! means false!

pawn Код:
if ( gData[G_PACKAGE_STARTED] ) // true

if ( !gData[G_PACKAGE_STARTED] ) // false
Waiting for any other idea or solution.
Reply


Messages In This Thread
Problem with locking vehicle doors - by Cypress - 13.12.2013, 19:49
Re: Problem with locking vehicle doors - by Tagathron - 13.12.2013, 20:04
Re: Problem with locking vehicle doors - by Cypress - 13.12.2013, 20:14
Re: Problem with locking vehicle doors - by Tagathron - 13.12.2013, 21:06
Re: Problem with locking vehicle doors - by Cypress - 14.12.2013, 07:28
Re: Problem with locking vehicle doors - by RajatPawar - 14.12.2013, 07:33
Re: Problem with locking vehicle doors - by Tagathron - 14.12.2013, 07:34
Re: Problem with locking vehicle doors - by Cypress - 14.12.2013, 08:22

Forum Jump:


Users browsing this thread: 1 Guest(s)