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

[TUT] Enumerations (enum)


Post New Thread Reply   
 
Thread Tools Display Modes
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-09-2010 , 14:53   Re: [TUT] Enumerations (enum)
Reply With Quote #21

- Around line 72 and 146. Well, just search "weak" / "strong". You will find it.
- In the first 3 examples, you cast (untag) the enum when that's not needed at all. The default behavior should not be to have an casted enum. People should learn to deal with the tag properly.
- It was just a suggestion to cover all the possibility you can, since it's a tutorial. It sounds like a specific case. Not really thought more than that. :p
- Yep, maybe I'm wrong, but I'm pretty sure not. Let's see your example.
- Ok.
- No problem. I've anyway explaided above.
- I was meant to have an example with a custom tag, set/get etc.. A full example.
- It's really simple, when you write for example name[ 32 ], replace 32 by another structure name. That's all. So far I remember, you can't have more than 2 structures.
- It's a way, but it should be used only when you have no choice, otherwise you tag something ? Better to learn how to use properly without casting.
__________________

Last edited by Arkshine; 10-09-2010 at 14:55.
Arkshine is offline
albert123
Veteran Member
Join Date: Mar 2009
Location: VietNam, Hai Phong
Old 10-10-2010 , 13:11   Re: [TUT] Enumerations (enum)
Reply With Quote #22

Can i use enumeration to set new animation for model ? I see some plugin using thir.
__________________
albert123 is offline
g_often
Senior Member
Join Date: Jan 2010
Location: In your mind
Old 10-12-2010 , 11:44   Re: [TUT] Enumerations (enum)
Reply With Quote #23

Good job, Exolent
__________________
Reality is wrong, dreams are for real.
g_often is offline
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 10-20-2010 , 05:56   Re: [TUT] Enumerations (enum)
Reply With Quote #24

Can i create structures like this ?
PHP Code:
enum Data
{
        
Data1,
        
Data2,
        
Data3
};
 
enum sData2
{
        
sData1[Data],
        
sData1[Data]

__________________
QQ:116268742
K.K.Lv is offline
Send a message via MSN to K.K.Lv
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-20-2010 , 06:07   Re: [TUT] Enumerations (enum)
Reply With Quote #25

You can see already such example in the tuto, did you read it at least ?
__________________
Arkshine is offline
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 10-20-2010 , 09:49   Re: [TUT] Enumerations (enum)
Reply With Quote #26

Quote:
did you read it at least ?
Of course !
__________________
QQ:116268742
K.K.Lv is offline
Send a message via MSN to K.K.Lv
albert123
Veteran Member
Join Date: Mar 2009
Location: VietNam, Hai Phong
Old 10-22-2010 , 02:46   Re: [TUT] Enumerations (enum)
Reply With Quote #27

Can someone answer me ? 0.0
__________________
albert123 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-22-2010 , 05:13   Re: [TUT] Enumerations (enum)
Reply With Quote #28

You already answer yourself in your question. ;)

If you need more informations, explain more what you don't understand.
__________________
Arkshine is offline
albert123
Veteran Member
Join Date: Mar 2009
Location: VietNam, Hai Phong
Old 10-22-2010 , 11:08   Re: [TUT] Enumerations (enum)
Reply With Quote #29

Quote:
Originally Posted by Arkshine View Post
You already answer yourself in your question. ;)

If you need more informations, explain more what you don't understand.
Yeah, i don't understand about it :-? I only saw some example about number on the first page . Arkshine, can you explain it for me ?
__________________
albert123 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-22-2010 , 11:10   Re: [TUT] Enumerations (enum)
Reply With Quote #30

Explain what ? You have already an explanation on the first page, be more specific.
__________________
Arkshine is offline
Old 10-25-2010, 10:57
lazarev
This message has been deleted by Emp`. Reason: nonsense
Old 10-25-2010, 11:02
SaM.ThE.MaN
This message has been deleted by Emp`. Reason: nonsense
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:28.


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