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

[Unsupported] MOTDgd Advertisements Plugin 0.1a


Post New Thread Reply   
 
Thread Tools Display Modes
dedimark
Senior Member
Join Date: Jul 2015
Location: London
Old 01-20-2017 , 17:47   Re: MOTDgd Advertisements Plugin 0.1a
Reply With Quote #11

plugin not working,and not tested by motdgd
dedimark is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 01-23-2017 , 15:51   Re: MOTDgd Advertisements Plugin 0.1a
Reply With Quote #12

I did set up the account.
I did compile the plugin locally with the custom includes.
I did enter my user ID.
I did create the config file (which you have to create manually otherwise the plugin will set itself as failed)
At this point, I got the plugin running without errors.
However, when I join the game, no ad.
If VGUI menus are enabled, team menu is gone and I can't do shit. I had to use "jointeam" to continue.
If VGUI menus are disabled, the menu works.
I managed to get an ad when I died but the result was "Unsupported environment, please contact us...".
Even when it's working it's not working.

This plugin is filled with beginner mistakes and bad practice. Here are a few:
Spoiler


The custom include "zephstocks" is a joke. It contains 1 function and 3 macros. I can see the use of the function but the macros are just ruining readability. A total of 13 lines which couldn't fit inside the plugin? The only purpose of this file is to name it after the author to create "fame".

easyHTTP is not as easy as it sounds. Doesn't even work. It's just as filled with errors.

I know nothing about JSON so I'm not going to check it.

Seeing someone making money of shit like this just pisses me off.
__________________
Black Rose is offline
PartialCloning
Senior Member
Join Date: Dec 2015
Old 01-23-2017 , 16:01   Re: MOTDgd Advertisements Plugin 0.1a
Reply With Quote #13

It's clearly ported from sourcemod as most of what you listed above makes sense/is common practice in sourcemod plugins. They're probably testing waters and didn't bother too much with making it as efficient as it should be.
PartialCloning is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 01-24-2017 , 03:42   Re: MOTDgd Advertisements Plugin 0.1a
Reply With Quote #14

Quote:
I might seem picky but I can't ever justify the usage of the function format(). In my view, that function is deprecated.
Check the documentation, this function still has it's usage where formatex can't be used. Test this code:
PHP Code:
new String[15]
copy(Stringcharsmax(String), "1234")
formatex(Stringcharsmax(String), "%s %s""something"String)
server_print("%s"String
__________________

Last edited by HamletEagle; 01-24-2017 at 03:46.
HamletEagle is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 01-24-2017 , 07:33   Re: MOTDgd Advertisements Plugin 0.1a
Reply With Quote #15

Quote:
Originally Posted by HamletEagle View Post
Check the documentation, this function still has it's usage where formatex can't be used. Test this code:
PHP Code:
new String[15]
copy(Stringcharsmax(String), "1234")
formatex(Stringcharsmax(String), "%s %s""something"String)
server_print("%s"String
I know this. But it's easier and better to append using add() or formatex() or even copy() in this case since no formatting is going on. I'm not sure since I can't look it up but many string functions will return a len which can be used for exactly this purpose.
__________________
Black Rose is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-24-2017 , 20:43   Re: MOTDgd Advertisements Plugin 0.1a
Reply With Quote #16

Regardless, there are still uses for it and therefore should not be considered deprecated.
__________________
fysiks 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 03:12.


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