AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Knowing what to include.. (https://forums.alliedmods.net/showthread.php?t=61564)

dt_torres 10-03-2007 17:16

Knowing what to include..
 
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?

M249-M4A1 10-03-2007 17:28

Re: Knowing what to include..
 
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

dt_torres 10-03-2007 19:15

Re: Knowing what to include..
 
wow...great...now im getting it

thank you very much

hope u see future plugins from moi

M249-M4A1 10-03-2007 19:29

Re: Knowing what to include..
 
Quote:

Originally Posted by dt_torres (Post 538506)
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!

-hi- 10-03-2007 22:35

Re: Knowing what to include..
 
Always include <amxmodx> to start then compile often. If functions aren't found you need to include some more stuff...


All times are GMT -4. The time now is 22:29.

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