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

Pickup two hegrenades


Post New Thread Reply   
 
Thread Tools Display Modes
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-24-2010 , 04:19   Re: Pickup two hegrenades
Reply With Quote #31

It's supposed to send a structure pointer to a function.
__________________
Arkshine is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-24-2010 , 04:35   Re: Pickup two hegrenades
Reply With Quote #32

Quote:
Originally Posted by Arkshine View Post
You can see the code of this function in the HLSDK. It's the same.
Thanks.

Quote:
Originally Posted by abdul-rehman View Post
Code:
pOther->HasShield
What is this operator "->" supposed to do ??
I know i am asking a question related to C/C++
It is how you access a member of a pointer variable.

Using these 2 cases with class Example:
Code:
Example object;
Example *objectPointer = &object;
The following are valid:
Code:
object.member
objectPointer->member
(*objectPointer).member
Google is your friend for such easy questions.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 11-24-2010 , 07:58   Re: Pickup two hegrenades
Reply With Quote #33

Quote:
Originally Posted by Exolent[jNr] View Post
Thanks.



It is how you access a member of a pointer variable.

Using these 2 cases with class Example:
Code:
Example object;
Example *objectPointer = &object;
The following are valid:
Code:
object.member
objectPointer->member
(*objectPointer).member
Google is your friend for such easy questions.
C++ is really , really hard and difficult
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 11-24-2010 , 08:42   Re: Pickup two hegrenades
Reply With Quote #34

@OP

I modified the code a bit and made armoury_entities handled properly when touched; in the previous code I posted, the armoury_entity would no longer appear in future rounds after being touched because it was destroyed, this has been fixed. I will post once I double check the code and test.
__________________
Bugsy is offline
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 11-24-2010 , 12:09   Re: Pickup two hegrenades
Reply With Quote #35

@Arkshine - thanks, thats all.
__________________
Join US - custom Zombie Server - Custom Addons:



Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 11-24-2010 , 18:34   Re: Pickup two hegrenades
Reply With Quote #36

Posted new code in page one for anyone to use\reference.
__________________
Bugsy 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 05:18.


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