AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Off-Topic (https://forums.alliedmods.net/forumdisplay.php?f=15)
-   -   Earn a FREE plugin review (https://forums.alliedmods.net/showthread.php?t=317617)

HamletEagle 07-21-2019 11:21

Earn a FREE plugin review
 
I'm bored and I kinda want to review a plugin so I thought let's do something "fun" or at least different. The first person who answers the following question correctly will get to choose what plugin I'll review next(maybe you made that awesome plugin or mod and no approver bothered with it for 5 years - this is your chance).

PHP Code:

#define PRINT_SQUARE(%1) server_print("%d", %1 * %1)

new 2
PRINT_SQUARE
(1

What's the output of the call PRINT_SQUARE(x + 1)? WHY? What if instead of the macro we had a function?

<VeCo> 07-21-2019 12:10

Re: Earn a FREE plugin review
 
x + 1 * x + 1
x + x + 1

2 + 1 * 2 + 1
2 + 2 + 1 = 5

r u drunk dude? do your job normally :wink:

https://forums.alliedmods.net/showthread.php?t=308540

random.org gave me this https://forums.alliedmods.net/showthread.php?t=164786 :lol: All old plugins have inactive developers, they have already missed their chance. u all lazy :lol: SHAME :lol:

thEsp 07-21-2019 12:11

Re: Earn a FREE plugin review
 
2 + 1 * 2 + 1 = 5
If there was a function, it would return 9 since function [would] return sum1 * sum1, whereas it is calculated before function is called (if you even understood :|).

mi0epro 07-21-2019 12:46

Re: Earn a FREE plugin review
 
I dunno what all of you are talking about he hasnt even included amxmodx... If somehow you manage to compile this plugin it wont work...

HamletEagle 07-21-2019 13:13

Re: Earn a FREE plugin review
 
Quote:

Originally Posted by <VeCo> (Post 2660047)
x + 1 * x + 1
x + x + 1

2 + 1 * 2 + 1
2 + 2 + 1 = 5

r u drunk dude? do your job normally :wink:

https://forums.alliedmods.net/showthread.php?t=308540

random.org gave me this https://forums.alliedmods.net/showthread.php?t=164786 :lol: All old plugins have inactive developers, they have already missed their chance. u all lazy :lol: SHAME :lol:

not drunk, just bored :lol:

Quote:

Originally Posted by thEsp (Post 2660048)
2 + 1 * 2 + 1 = 5
If there was a function, it would return 9 since function [would] return sum1 * sum1, whereas it is calculated before function is called (if you even understood :|).

Give me a plugin link either here or by PM, I'll review what you and Veco said.

Quote:

Originally Posted by mi0epro (Post 2660054)
I dunno what all of you are talking about he hasnt even included amxmodx... If somehow you manage to compile this plugin it wont work...

The point wasn't to compile and test, it was just to evaluate that snippet(thought it goes without saying you should assume all needed includes are present and the snippet is actually used in some function).

mi0epro 07-21-2019 13:39

Re: Earn a FREE plugin review
 
I just tried another answer which was nothing xDD

OciXCrom 07-21-2019 17:21

Re: Earn a FREE plugin review
 
I got disappointed for seeing the thread a little too late, and then I noticed that <VeCo> gave the exact plugin that I was going to give. :o Thanks.

HamletEagle 07-21-2019 18:02

Re: Earn a FREE plugin review
 
Once I finish with these maybe I'll post a new topic and do something different, like using random.org to pick the next person or something.
If you have any idea, please share.

thEsp 07-21-2019 18:29

Re: Earn a FREE plugin review
 
I suggest you to name this kind of thing "Hamlet show 2019", doesn't it sound cool? :3

OciXCrom 07-22-2019 12:37

Re: Earn a FREE plugin review
 
Quote:

Originally Posted by HamletEagle (Post 2660096)
Once I finish with these maybe I'll post a new topic and do something different, like using random.org to pick the next person or something.
If you have any idea, please share.

Who needs random.org when you have AMXX. :wink:


All times are GMT -4. The time now is 10:20.

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