Raised This Month: $ Target: $400
 0% 

unixtime + optimizaciones


  
 
 
Thread Tools Display Modes
Author Message
rak
Veteran Member
Join Date: Oct 2011
Location: banned country
Old 06-01-2012 , 22:48   Re: unixtime + optimizaciones
#1

por q no?

PHP Code:
#include <amxmodx>
#include <unixtime>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "[R]ak"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
set_task(1.0"print")
}

public print() {
    new 
YearMonth,Day ,Hour ,Minute ,SecondNewTime
    
    NewTime 
TimeToUnix(2012072000)
    
UnixToTime(NewTimeYearMonthDayHourMinuteSecond)
    
console_print(0"Resultado = %02d/%02d/%d %02d:%02d:%02d"DayMonthYearHourMinuteSecond)

__________________

www.amxmodx-es.com

Steam: Luchokoldo
rak is offline
Send a message via MSN to rak Send a message via Skype™ to rak
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 06-01-2012 , 23:20   Re: unixtime + optimizaciones
#2

Pero yo no quiero mostrar la fecha...
__________________
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viña del Mar, Chile
Old 06-02-2012 , 00:36   Re: unixtime + optimizaciones
#3

Quote:
Originally Posted by Neeeeeeeeeel.- View Post
Pero yo no quiero mostrar la fecha...
Dejas los parametros de sobra y listo, tu pc no hechará humo por ejecutar un par de loops más
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 06-03-2012 , 08:51   Re: unixtime + optimizaciones
#4

Está perfecto lo que me dejó gladius... era lo que quería
__________________
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:24.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode