[HELP!] Adding a variable
#1

Hey guys,

I've been working on an engine ignition system, and I've got it working but now I'd like to store a variable that tells if the engine is on or not, I tried gEngineOn[playerid] or something of that sort but it didn't work, infact it cancelled out the ignition system entirely. I'd like this so I could do something like if the press the engine button again and the engineon variable == 1 then it would shut it off.

My question is, how would I do this? I know I have to store a variable but I don't know how to do that.

Thanks.
Reply


Messages In This Thread
[HELP!] Adding a variable - by Jmarr - 27.07.2011, 01:26
Re: [HELP!] Adding a variable - by =WoR=Varth - 27.07.2011, 01:40
Re: [HELP!] Adding a variable - by Jmarr - 27.07.2011, 02:11
Re: [HELP!] Adding a variable - by =WoR=Varth - 27.07.2011, 02:18
Re: [HELP!] Adding a variable - by Jmarr - 27.07.2011, 02:30

Forum Jump:


Users browsing this thread: 1 Guest(s)