Raised This Month: $ Target: $400
 0% 

new func?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
k007
BANNED
Join Date: Mar 2006
Location: bacon?
Old 06-19-2006 , 16:55   new func?
Reply With Quote #1

what is Ammox used for? and #define AMMOX_name
is it amxmod?
k007 is offline
Send a message via MSN to k007
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 06-19-2006 , 17:20  
Reply With Quote #2

What?

AmmoX is an event in most HL mods.

Unless you mean ArrayX? ArrayX is a module that allows you to use dynamic memory, hashtables, and keytables. It's much better and faster than vault, SQL, or anything like that.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
k007
BANNED
Join Date: Mar 2006
Location: bacon?
Old 06-19-2006 , 17:21  
Reply With Quote #3

could explain more about the event?
and if define AMMOX_name wut does that do?
k007 is offline
Send a message via MSN to k007
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 06-19-2006 , 17:24  
Reply With Quote #4

Quote:
Originally Posted by k007
could explain more about the event?
and if define AMMOX_name wut does that do?
I could do this:

Code:
#define k007_licks_Hawk552s_balls

and it would make no difference. No defines make a difference if they're not used in the script somewhere.

#pragma is a different story, it's a direct instruction to the compiler on how to do something.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
k007
BANNED
Join Date: Mar 2006
Location: bacon?
Old 06-19-2006 , 17:28  
Reply With Quote #5

lets i used #define AMMOX_HEGRENADE 12
and in my event i used this
Code:
    if ( iAmmoType == AMMOX_HEGRENADE
does that mean if the user has a nade or what?
k007 is offline
Send a message via MSN to k007
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 06-19-2006 , 17:29  
Reply With Quote #6

Quote:
Originally Posted by k007
lets i used #define AMMOX_HEGRENADE 12
and in my event i used this
Code:
    if ( iAmmoType == AMMOX_HEGRENADE
does that mean if the user has a nade or what?
Probably.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
k007
BANNED
Join Date: Mar 2006
Location: bacon?
Old 06-19-2006 , 17:31  
Reply With Quote #7

would it make a diffrent if i added == true?
k007 is offline
Send a message via MSN to k007
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 06-19-2006 , 17:32  
Reply With Quote #8

Quote:
Originally Posted by k007
would it make a diffrent if i added == true?
Yes, because if iAmmoType > 0, it'll execute the code within the conditional statement.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
k007
BANNED
Join Date: Mar 2006
Location: bacon?
Old 06-19-2006 , 17:34  
Reply With Quote #9

so lets say if i have a funcbuy blah blah and i have a ammox_hegrenade[id] = ture in my buyfunc
then i wuoldn't need the == true in the event right?
and i have
Code:
if(iAmmoCount == 0) {
k007 is offline
Send a message via MSN to k007
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 06-19-2006 , 17:36  
Reply With Quote #10

what
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Reply


Thread Tools
Display Modes

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 08:03.


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