Raised This Month: $51 Target: $400
 12% 

Timeleft.amxx showing D/M/Y instead of M/D/Y


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ddag1
Member
Join Date: Apr 2020
Old 04-13-2020 , 06:43   Timeleft.amxx showing D/M/Y instead of M/D/Y
Reply With Quote #1

Hi there!, I have a HL server and I noticed that timeleft.amxx shows the date as "M/D/Y", I would like it as "D/M/Y" could anyone please help me? Thank you so much in advance! (btw, if anyone can compile it too it'd be awesome since everytime I try to compile I have problems lol)
Attached Files
File Type: sma Get Plugin or Get Source (timeleft.sma - 119 views - 5.9 KB)
ddag1 is offline
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 04-13-2020 , 07:14   Re: Timeleft.amxx showing D/M/Y instead of M/D/Y
Reply With Quote #2

try to change the line 90

PHP Code:
    get_time("%m/%d/%Y - %H:%M:%S"ctime63
to

PHP Code:
    get_time("%d/%m/%Y - %H:%M:%S"ctime63
we cant compile it for you, you shouldn`t get compiled files either, can harm your server

Last edited by tarsisd2; 04-13-2020 at 07:15.
tarsisd2 is offline
ddag1
Member
Join Date: Apr 2020
Old 04-13-2020 , 09:04   Re: Timeleft.amxx showing D/M/Y instead of M/D/Y
Reply With Quote #3

Quote:
Originally Posted by tarsisd2 View Post
try to change the line 90

PHP Code:
    get_time("%m/%d/%Y - %H:%M:%S"ctime63
to

PHP Code:
    get_time("%d/%m/%Y - %H:%M:%S"ctime63
we cant compile it for you, you shouldn`t get compiled files either, can harm your server
Oh didn't know that bout harming my server. And I changed that line and compiled it but didn't work. Bad load.
ddag1 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-13-2020 , 09:06   Re: Timeleft.amxx showing D/M/Y instead of M/D/Y
Reply With Quote #4

It's because you're either using an online compiler or compiling under a newer AMXX version that your server is using.

Always compile your plugins locally under the same AMXX version as your server.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Reply



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:28.


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