[Include] [INC] ShoSec
#1

Here is a little include i made earlier, i got bored and it could really help newbies who are too stupid to understand milliseconds.. or they just cant be bothered figuring them out..

All this is, is a simple include to help you with timers and milliseconds.
Simply use Sho1 for 1 second, or Sho47 for 47 seconds, It has every second up to 2 minutes,
Then it goes up by 1 minute intervals to 10 minutes, then goes up by 5 minute intervals to 1 hour.
I may make it a lot more detailed if i have more time.

How to install it? Put 'ShoSec.inc' into your 'pawno\include' folder and add #include <ShoSec> at the top of your gamemode script. Instead of using milliseconds you can simply use Sho followed by a number in seconds.

Download:

Reply
#2

Oh jeah....a reeeeaaallly simple script...
But easier:

Code:
stock InMilliSec(sec) return (sec*1000);
Reply
#3

Usefull.
Reply
#4

The kind of people that don't understand milliseconds are the kind that don't understand how to use includes. The number of seconds this script provides is limited by the number of defines, and I think Marciii solution is a lot easier =/

But I guess you're trying to help the newer members, so nice try.
Reply
#5

Easier & Faster.

#define StoMS(%0) %0*1000
#define MStoS(%0) %0/1000
Reply
#6

Nice work, I've always needed something like this
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)