AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Help]Includes (https://forums.alliedmods.net/showthread.php?t=113724)

lolumad 12-29-2009 15:44

[Help]Includes
 
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

minimiller 12-29-2009 15:53

Re: [Help]Includes
 
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)

lolumad 12-29-2009 15:57

Re: [Help]Includes
 
ok, when I use fun fakemata hamsandwich and engine? :D

minimiller 12-29-2009 16:12

Re: [Help]Includes
 
whenever u need them
they each have different functions that arent included in any other include
(apart from fakemeta and engine)

lolumad 12-29-2009 16:25

Re: [Help]Includes
 
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 )

grimvh2 12-29-2009 16:44

Re: [Help]Includes
 
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)

fysiks 12-29-2009 19:20

Re: [Help]Includes
 
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.

lolumad 12-29-2009 20:25

Re: [Help]Includes
 
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

minimiller 12-29-2009 20:42

Re: [Help]Includes
 
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)


All times are GMT -4. The time now is 04:01.

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