Lights on/off with a key
#5

You are using "lights" variable to store the light value
pawn Code:
if(lights)//If light is on
{
//Set light off here
}
else//else light is off
{
//Set light on here
}

Have you check the link I gave you?
Reply


Messages In This Thread
Lights on/off with a key [Resolved] - by Arpatos - 28.02.2013, 12:23
Re: Lights on/off with a key - by Luis- - 28.02.2013, 12:27
Re: Lights on/off with a key - by =WoR=Varth - 28.02.2013, 12:44
Re: Lights on/off with a key - by Arpatos - 28.02.2013, 12:47
Re: Lights on/off with a key - by =WoR=Varth - 28.02.2013, 12:53
Re: Lights on/off with a key - by Arpatos - 28.02.2013, 12:58
Re: Lights on/off with a key - by Vince - 28.02.2013, 13:20
Re: Lights on/off with a key - by Arpatos - 28.02.2013, 13:32
Re: Lights on/off with a key - by Arpatos - 28.02.2013, 14:54
Re: Lights on/off with a key - by Arpatos - 28.02.2013, 16:30

Forum Jump:


Users browsing this thread: 1 Guest(s)