Get Time
I made a plugin who works according to time. Is there any mistake here or how can I optimize it?
Spoiler
|
Re: Get Time
Use time() so you don't have to work with strings. I don't know why people keep doing that, I've seen it many times over the years.
|
Re: Get Time
You are hardcoding and writing repetitive and inefficient code.
It could work, but the code you sent, In my opinion, is one big bad practice. |
Re: Get Time
How I will use it?
PHP Code:
|
Re: Get Time
time() returns a unix timestamp, other than that, aarguments can be found here https://www.amxmodx.org/api/core/time
|
Re: Get Time
I don't understand in amxmodx.org. It's for not new codders I guess.
is it wrong? PHP Code:
|
Re: Get Time
Yes its wrong, you were kinda fine the first time, arguments are variables to store info to.
|
Re: Get Time
So it's more optimized the first time?
|
Re: Get Time
Of course
|
Re: Get Time
Quote:
|
| All times are GMT -4. The time now is 12:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.