Author Topic: (My Own) Fuel System => problem <=  (Read 2343 times)

0 Members and 1 Guest are viewing this topic.

Offline sseebbyy

  • VC:MP Veteran
  • *****
  • Posts: 774
  • Immortal VC:MP Player
    • View Profile
    • Zombie Invasion => Server Forum [DEAD PROJECT]
(My Own) Fuel System => problem <=
« on: February 11, 2012, 11:25:20 pm »
I don't know why, but the fuel decrease fast after some time .

Now is 45 , after 30 seconds 44, after another 30 seconds (think) 43 , and he start to decrease fast now. After 15 seconds 42 after 12 seconds 41 after 10 seconds 40 etc.

This is my own Fuel System

~script deleted~

Reason: This script make part from my new GM .



What need to fix ?
« Last Edit: February 12, 2012, 12:25:43 am by sseebbyy »

Quote
Painful/Noob scripters acts like: I Am The Best Scripter Because I Announce My Releases With Big Font Size Without Giving Too Much Info' In The Hope They All Will Download And Check It. I Ignore Bad Replies, Replies That I Could Learn From, And Replies With So Much Text.



Offline stormeus

  • VC:MP Developer
  • VC:MP Veteran
  • *
  • Posts: 1122
    • View Profile
Re: (My Own) Fuel System => problem <=
« Reply #1 on: February 11, 2012, 11:52:33 pm »
The UpdateGas and CheckGas functions are made for the entire server, yet you start and stop them after players enter and exit vehicles. Multiple timer instances are created, and my guess is that some of them aren't stopping.
Do not PM me for support.




Offline sseebbyy

  • VC:MP Veteran
  • *****
  • Posts: 774
  • Immortal VC:MP Player
    • View Profile
    • Zombie Invasion => Server Forum [DEAD PROJECT]
Re: (My Own) Fuel System => problem <=
« Reply #2 on: February 12, 2012, 12:14:47 am »
I thought about it, but never tried  :-\ .

So , if i will put at Ongamemodeinit need put and if(IsPlayerConnected(i)) {

thank you stormeus.

Quote
Painful/Noob scripters acts like: I Am The Best Scripter Because I Announce My Releases With Big Font Size Without Giving Too Much Info' In The Hope They All Will Download And Check It. I Ignore Bad Replies, Replies That I Could Learn From, And Replies With So Much Text.