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

Knowing what to include..


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dt_torres
Member
Join Date: Sep 2007
Old 10-03-2007 , 17:16   Knowing what to include..
Reply With Quote #1

im starting on scripting and i am starting with making amx_kick, amx_ban, and other scripts that are easy..

the thing is, how do I know what to include??

#include <amxmodx>

how I know if it needs cstrike, fakemeta etc?
dt_torres is offline
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 10-03-2007 , 17:28   Re: Knowing what to include..
Reply With Quote #2

You know if you include certain things by the fact that if you use a function that is part of it. For example, set_lights(const Lighting[]) is native to the Engine module, so you would do #include <engine>

To find out all possible functions, and what module they belong to, look at this:

http://www.amxmodx.org/funcwiki.php

You can also look at the .inc files in the scripting/includes folder for some extra goodies
__________________
M249-M4A1 is offline
dt_torres
Member
Join Date: Sep 2007
Old 10-03-2007 , 19:15   Re: Knowing what to include..
Reply With Quote #3

wow...great...now im getting it

thank you very much

hope u see future plugins from moi
dt_torres is offline
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 10-03-2007 , 19:29   Re: Knowing what to include..
Reply With Quote #4

Quote:
Originally Posted by dt_torres View Post
wow...great...now im getting it

thank you very much

hope u see future plugins from moi
I do look forward to it, and good luck on your plugins!
__________________
M249-M4A1 is offline
-hi-
Member
Join Date: Jul 2006
Old 10-03-2007 , 22:35   Re: Knowing what to include..
Reply With Quote #5

Always include <amxmodx> to start then compile often. If functions aren't found you need to include some more stuff...
-hi- 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 12:42.


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