Home   Help Search Login Register  

Author Topic: Counter problems  (Read 601 times)

0 Members and 1 Guest are viewing this topic.

HuNtA

  • Guest
Counter problems
« on: 30 Jun 2003, 20:49:06 »
I have a problem!
Im making a NOS management script so you can choose how much you use, and Ive got the counter as 100, but how do I pass it to each script!   ???

I havent made enough to show any1 so plz help!

Arrouan

  • Guest
Re:Counter problems
« Reply #1 on: 01 Jul 2003, 01:31:46 »
Part of solving a problem is stating it in a way people can understand what you are talking about  ???

HuNtA

  • Guest
Re:Counter problems
« Reply #2 on: 01 Jul 2003, 16:57:20 »
Im making a NOS script that lets you use 25% of tank, 50% and so on.
it uses a counter (_counter = 100) to show how much of the tank is left, and it takes away 25 from the 100 counter for useing 25% of the tank, but I dont know how to make sure U cant use 100% of the tank in another script in it

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Counter problems
« Reply #3 on: 01 Jul 2003, 17:02:15 »
just make the local variable _counter a global one by removing the _ in both scripts.  ???
Not all is lost.

HuNtA

  • Guest
Re:Counter problems
« Reply #4 on: 01 Jul 2003, 17:50:45 »
tx man, I shall try and post here if it doesnt