Vice City Multiplayer
November 14, 2018, 02:03:22 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: VC:MP 0.3z r2 is released! http://vicecitymultiplayer.com
 
   Home   Help Search Members Login Register  
Pages: [1]
  Print  
Author Topic: !hosttime for squirrel !!! (created by [LP]Castagna)  (Read 828 times)
0 Members and 1 Guest are viewing this topic.
Castagna96
Wiseguy
**
Offline Offline

Posts: 95


View Profile
« on: April 26, 2011, 09:33:51 pm »

 Hi guys , well today I will share this useful comand for squirrel by me  Smiley .This command give you the total time(expresed in minutes) , that your server has been hosted , or turned on...
 
very simple  Grin

Quote
 }
     if ( cmd == "host" )
     {
          MessagePlayer( "The server has been online for" + floor( GetTickCount() / 60000 ) + " minutes.", player );
     }

« Last Edit: April 27, 2011, 04:27:31 am by StriKe » Logged
BIG[H]
Made Man
***
Offline Offline

Posts: 198

(Pawn / Squirrel) Scripter.


View Profile
« Reply #1 on: April 27, 2011, 03:42:43 am »

floor or float

fix it Babe



          MessagePlayer( "The server has been online for" + floor( GetTickCount() / 60000 ) + " minutes.", player );


New hosting !
Logged

My Guru FORUM MUST VISITmegavcmp.freeforums.org

BIG[H] = BIG HaLL
stormeus
Administrator
Wiseguy
*****
Offline Offline

Posts: 60


[IT]


View Profile WWW
« Reply #2 on: April 27, 2011, 12:08:44 pm »

floor or float

fix it Babe



          MessagePlayer( "The server has been online for" + floor( GetTickCount() / 60000 ) + " minutes.", player );


New hosting !


Actually, floor() is a valid function in Squirrel. It means to round down to the nearest whole number. Anyways, good job, Castagna!
Logged

BIG[H]
Made Man
***
Offline Offline

Posts: 198

(Pawn / Squirrel) Scripter.


View Profile
« Reply #3 on: April 27, 2011, 02:27:09 pm »

Yes i Forgot About it ... thanks for Reminder  Tongue
Logged

My Guru FORUM MUST VISITmegavcmp.freeforums.org

BIG[H] = BIG HaLL
Castagna96
Wiseguy
**
Offline Offline

Posts: 95


View Profile
« Reply #4 on: April 27, 2011, 06:04:22 pm »

yea it works lol  Grin
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!