27.07.2011, 01:26
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.
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.