Raised This Month: $ Target: $400
 0% 

Killer Memes MOTD


Post New Thread Reply   
 
Thread Tools Display Modes
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 08-18-2023 , 11:56   Re: Killer Memes MOTD
Reply With Quote #11

Because i run an older amxx version and probably more people too. Plus that is a constant that shouldn’t even be at amxx. Not all servers are 32 slots and people used to make that define so you don’t create unnecessary slots when you have a server with few slots.
Imagine that you want this at a deathrun 15 slots server, it’s pointless to use 33 slots
__________________
Jhob94 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-18-2023 , 22:22   Re: Killer Memes MOTD
Reply With Quote #12

While you don't need all 33 cells for your arrays, it is, in most case, completely inconsequential. There are things that I, too, don't agree with putting in certain locations but I suspect that it was assumed that any PC less than 15 years old would be able to handle it.
__________________

Last edited by fysiks; 08-18-2023 at 22:23.
fysiks is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 08-19-2023 , 03:28   Re: Killer Memes MOTD
Reply With Quote #13

Yes using 33 cells won’t cause any harm. But it is wrong.
__________________
Jhob94 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-19-2023 , 04:29   Re: Killer Memes MOTD
Reply With Quote #14

Quote:
Originally Posted by Jhob94 View Post
Yes using 33 cells won’t cause any harm. But it is wrong.
I'm not sure I would say that. If you're making a complete plugin (a plugin that doesn't require any modifications), the plugin should work on any server for any number of players so using 33 is what you'd have to do since array sizes must be hard coded in the plugin.
__________________
fysiks is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 08-19-2023 , 04:43   Re: Killer Memes MOTD
Reply With Quote #15

Yes and this default plugin has 33 array cells. Yet it is easier for the user to change it if they want to.
__________________
Jhob94 is offline
mlibre
Veteran Member
Join Date: Nov 2015
Location: return PLUGIN_CONTINUE
Old 08-19-2023 , 16:15   Re: Killer Memes MOTD
Reply With Quote #16

Quote:
Originally Posted by Jhob94 View Post
Because i run an older amxx version and probably more people too.
we are in the same, that's why I usually add support to all versions. something as simple as:

PHP Code:
#if !defined MAX_PLAYERS
const MAX_PLAYERS 32
#endif 
or

PHP Code:
#if AMXX_VERSION_NUM <= 182
const MAX_PLAYERS 32
#endif 
as a good programmer we must think of everything if x or y is executed
__________________
mlibre is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 08-19-2023 , 17:00   Re: Killer Memes MOTD
Reply With Quote #17

Man I can’t believe you are still insisting on something so irrelevant. Do you even have any evidence that it is better? You are doing a check condition, later if not, you are creating the const. Making it 2 steps. Like i did is 1 step for all. It is totally harmless and it’s non-sense to argue something like it. The extremely little i spend on memory you want to spend on cpu. And i am not a good programmer. A good programmer is someone like bailopan or joaquimandrade.
__________________
Jhob94 is offline
mlibre
Veteran Member
Join Date: Nov 2015
Location: return PLUGIN_CONTINUE
Old 08-19-2023 , 19:13   Re: Killer Memes MOTD
Reply With Quote #18

It's just an example, calm down, don't rush, we only use existing constants without having to invent new ones.

__________________
mlibre is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 08-19-2023 , 19:18   Re: Killer Memes MOTD
Reply With Quote #19

I can’t do it. I am on my phone several miles away from home ��
__________________
Jhob94 is offline
IC3k1ng
Senior Member
Join Date: Mar 2023
Location: Argentina
Old 08-26-2023 , 23:14   Re: Killer Memes MOTD
Reply With Quote #20

Good plugin. It would be a little bit better if the images fits with the MOTD size. (width: 100%;)

It doesn't have to much use, but probably it can be more used at mods like Prop Hunt or another fun mod.
__________________


IC3k1ng is offline
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 07:50.


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