Raised This Month: $ Target: $400
 0% 

[Help]Includes


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lolumad
Member
Join Date: Dec 2009
Old 12-29-2009 , 15:44   [Help]Includes
Reply With Quote #1

Hi, I'm learning how to script, and I want to know this:
How do I know what includes I have to put in my script (depending of what I scripted).
thx in advance
__________________
#include < >
#include <>
#include < >
lolumad is offline
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 12-29-2009 , 15:53   Re: [Help]Includes
Reply With Quote #2

depends what you need
u need to include <amxmodx> in everything, after that its up to you
the most used are <fun> <fakemeta> <hamsandwich> and <engine>

different mods have different includes aswell
for instance counter-strike uses <cstrike> for stuff like weapons and teams
(i dont play any other mods, so i dunno any other mod specific incs)
__________________
minimiller is offline
Send a message via MSN to minimiller
lolumad
Member
Join Date: Dec 2009
Old 12-29-2009 , 15:57   Re: [Help]Includes
Reply With Quote #3

ok, when I use fun fakemata hamsandwich and engine?
__________________
#include < >
#include <>
#include < >
lolumad is offline
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 12-29-2009 , 16:12   Re: [Help]Includes
Reply With Quote #4

whenever u need them
they each have different functions that arent included in any other include
(apart from fakemeta and engine)
__________________
minimiller is offline
Send a message via MSN to minimiller
lolumad
Member
Join Date: Dec 2009
Old 12-29-2009 , 16:25   Re: [Help]Includes
Reply With Quote #5

I know that each include does something different oO
but I want to know when I have to use each one, the example you made <cstrike> is great, it was the only I got ( and <amxmodx> that I already knew ;D )
__________________
#include < >
#include <>
#include < >
lolumad is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 12-29-2009 , 16:44   Re: [Help]Includes
Reply With Quote #6

they sometimes do the same thing but on another way.

maybe for a start look @ http://www.amxmodx.org/doc/ @ function references. (note : its for amx 1.6 or smthing but has the most included)
__________________
I am out of order!
grimvh2 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-29-2009 , 19:20   Re: [Help]Includes
Reply With Quote #7

Use whatever functions you want. Compile. If it fails then add the include. Compile. If it fails you added the the wrong include or not enough.
__________________
fysiks is offline
lolumad
Member
Join Date: Dec 2009
Old 12-29-2009 , 20:25   Re: [Help]Includes
Reply With Quote #8

If I add all includes, if the plugin dont use it will come this?
warning: #include <Example> is never used

something like this?
thx, when I get better on script I'm gonna know but not this way ;D
__________________
#include < >
#include <>
#include < >
lolumad is offline
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 12-29-2009 , 20:42   Re: [Help]Includes
Reply With Quote #9

if you include and include that is never used, no error will appear and the plugin will still run as it should

its not a good habit to get into though (including everything, but not using much of it)
__________________
minimiller is offline
Send a message via MSN to minimiller
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 04:01.


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