[FilterScript] [FS] Windows or Linux detector
#21

Quote:
Originally Posted by =Contador=
Quote:
Originally Posted by Luka[balkan-samp.com
]
Quote:
Originally Posted by Stevelo
Quote:
Originally Posted by Vetle
GetTickCount() = Windows only.
tickcount() = Windows and Linux.

on linux GetTickCount() returns an negative number.
What Linux version is that on? I've been using GetTickCount on my Linux server for quite a while and never experienced a problem with it.
Try again.
perhaps try again yourself

GetTickCount works fine on my Debian server @ serverffs
You`re maybe right. I don`t have Linux
Reply
#22

Lulz, Whats the Point of it? Just to know that your using Windows or Linux?? Lulz!
Reply
#23

Quote:
Originally Posted by eXchainZ-FoReVeR
Lulz, Whats the Point of it? Just to know that your using Windows or Linux?? Lulz!
lulz?
Reply
#24

lulz = lol^^

And for your home server it's useless, but when you run on a host it's MAYBE useful, but you should know the OS of your Host.
Reply
#25

Like Weirdosport says:

If you made a script to release on here, you want it to be versatile, so that windows and linux users can both use it without problems. If for some reason the script needed to be different for linux users, by working out when the script loads what they're on variables could be changed to activate linux parts of the script.
Reply
#26

Quote:
Originally Posted by @TheShadow@
lulz = lol^^

And for your home server it's useless, but when you run on a host it's MAYBE useful, but you should know the OS of your Host.
+1. Yup~!~
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)