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

Structs in AMXX


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Abhinash
Senior Member
Join Date: Jan 2015
Location: India,kolkata
Old 03-16-2018 , 18:27   Structs in AMXX
Reply With Quote #1

Is it possible to use structs in amxx with enum tags like --
Code:
enum {    var1 = 5    var2 = 10    var3 = 3020    var4 = 12332 }

Or is there any other way i can use Structs in AMXX.
Abhinash is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-16-2018 , 18:52   Re: Structs in AMXX
Reply With Quote #2

There's nothing wrong with the example you provided, just make sure you have a comma after each value.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Abhinash
Senior Member
Join Date: Jan 2015
Location: India,kolkata
Old 03-16-2018 , 19:08   Re: Structs in AMXX
Reply With Quote #3

Well, that worked after I put comma.
Is there any way we can use structs by making stocks ??
Abhinash is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 03-16-2018 , 19:10   Re: Structs in AMXX
Reply With Quote #4

Quote:
Originally Posted by Abhinash View Post
Well, that worked after I put comma.
Is there any way we can use structs by making stocks ??
What do you mean?
__________________
HamletEagle is offline
Abhinash
Senior Member
Join Date: Jan 2015
Location: India,kolkata
Old 03-16-2018 , 19:28   Re: Structs in AMXX
Reply With Quote #5

I mean, like we make Functions.
Can we make Structs by making it act as a stock but it will serve the purpose of Structs.
Abhinash is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 03-16-2018 , 19:42   Re: Structs in AMXX
Reply With Quote #6

By 'stock' I assume you mean function. Can you give an example what you're talking about?
__________________
Bugsy is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-17-2018 , 14:29   Re: Structs in AMXX
Reply With Quote #7

Structs and functions are to very different things and serve very different purposes.
__________________
fysiks 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 17:52.


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