[FilterScript] [FS] Windows or Linux detector - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] [FS] Windows or Linux detector (
/showthread.php?tid=79922)
Re: [FS] Windows or Linux detector -
Luka P. - 01.06.2009
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
Re: [FS] Windows or Linux detector -
eXchainZ-FoReVeR - 02.06.2009
Lulz, Whats the Point of it? Just to know that your using Windows or Linux?? Lulz!
Re: [FS] Windows or Linux detector -
Luka P. - 02.06.2009
Quote:
Originally Posted by eXchainZ-FoReVeR
Lulz, Whats the Point of it? Just to know that your using Windows or Linux?? Lulz!
|
lulz?
Re: [FS] Windows or Linux detector -
@TheShadow@ - 05.06.2009
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.
Re: [FS] Windows or Linux detector -
Luka P. - 05.06.2009
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.
Re: [FS] Windows or Linux detector -
eXchainZ-FoReVeR - 06.06.2009
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~!~