Author Topic: help!!  (Read 3614 times)

0 Members and 1 Guest are viewing this topic.

Offline [GCK]KoFFe

  • Street Thug
  • *
  • Posts: 27
    • View Profile
help!!
« on: January 12, 2011, 06:56:10 pm »
guys what is tickcount??
gettickcount??

i want to run a clock on my server please tell me any code

Offline [GCK]KoFFe

  • Street Thug
  • *
  • Posts: 27
    • View Profile
Re: help!!
« Reply #1 on: January 13, 2011, 10:51:56 pm »
Help here

i saw tickcount from time.inc

i want to run the clock like mirc any one help me plz

Offline aXXo

  • Wiseguy
  • **
  • Posts: 50
    • View Profile
Re: help!!
« Reply #2 on: January 14, 2011, 01:46:03 pm »
TickCount returns the number of seconds elapsed.

For example:

Time1=GetTickCount();
Time2=GetTickCount();

Time2-Time1 will be the seconds elapsed between the execution of the above two statements.

Offline [GCK]KoFFe

  • Street Thug
  • *
  • Posts: 27
    • View Profile
Re: help!!
« Reply #3 on: January 14, 2011, 02:44:58 pm »
thx :)

but what is KillTimer?

how to use it!!

Offline shivambansal

  • Wiseguy
  • **
  • Posts: 52
  • VC:MP Beta Tester
    • View Profile
Re: help!!
« Reply #4 on: January 14, 2011, 08:01:29 pm »
hiiiiiiiii.........
i am [GCK]Avinash

Offline aXXo

  • Wiseguy
  • **
  • Posts: 50
    • View Profile
Re: help!!
« Reply #5 on: January 15, 2011, 12:30:00 am »
To start a timer:
Code: [Select]
new MyTimer;
MyTimer=SetTimer("HealAll",1000,true);

It will call the HealAll() function infinite times in 1 second interval.
The timerid for that timer is saved in MyTimer variable.

so on
Code: [Select]
KillTimer(MyTimer);
The timer will stop.

Offline [GCK]KoFFe

  • Street Thug
  • *
  • Posts: 27
    • View Profile
Re: help!!
« Reply #6 on: January 16, 2011, 05:52:50 pm »
thx but if i had a timer running on Gamemodeinit()
then how to close it and it will automatically start after 15 mins :) i had try this its not works but Bugged
its sick script
SetTimer("putoutofcar",300000,0);
« Last Edit: January 16, 2011, 05:59:11 pm by [GCK]KoFFe »