Raised This Month: $ Target: $400
 0% 

I was wondering...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 01-15-2010 , 17:13   I was wondering...
Reply With Quote #1

Why is the 'public plugin_init()' in old(er) AMX Mod X Plugins on the bottom of the file, and now at the top?
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
roflmao456
Junior Member
Join Date: Jun 2009
Location: Canada
Old 01-15-2010 , 17:21   Re: I was wondering...
Reply With Quote #2

you mean like

"old(er)":
Code:
/* ... code ... */

public plugin_init()
{
// blah
}
"now":
Code:
public plugin_init()
{
// blah
}

/* ... code ... */
__________________
roflmao456 is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 01-15-2010 , 17:22   Re: I was wondering...
Reply With Quote #3

Yes, as I've explained
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
roflmao456
Junior Member
Join Date: Jun 2009
Location: Canada
Old 01-15-2010 , 17:24   Re: I was wondering...
Reply With Quote #4

I guess it just depends on the dev.
__________________
roflmao456 is offline
ehha
SourceMod Donor
Join Date: Apr 2006
Location: Sibiu
Old 01-15-2010 , 17:54   Re: I was wondering...
Reply With Quote #5

Perhaps the older version was like c++, requiring a prototype.
__________________

Last edited by ehha; 01-15-2010 at 18:03.
ehha is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-15-2010 , 17:58   Re: I was wondering...
Reply With Quote #6

I've wondered this myself. But I've come to the conclusion that some people are taught that way. I think it's annoying.
__________________
fysiks is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 01-16-2010 , 04:21   Re: I was wondering...
Reply With Quote #7

Quote:
I think it's annoying.
Totally agree
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
01101101
BANNED
Join Date: Nov 2009
Location: 9`su 09`n0n7e`r0f76a
Old 01-16-2010 , 07:03   Re: I was wondering...
Reply With Quote #8

Its just about fashion.
01101101 is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 01-16-2010 , 11:53   Re: I was wondering...
Reply With Quote #9

In that case I prefer to do this

PHP Code:
#include <plugininit>
#include <plugincfg>
#include <pluginprecache>
#include <clientputinserver>

/* code */ 
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 01-16-2010 , 12:28   Re: I was wondering...
Reply With Quote #10

__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
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 20:11.


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