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

Solved Multidimensional dynamic arrays


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ish12321
Veteran Member
Join Date: May 2016
Old 06-11-2018 , 07:48   Multidimensional dynamic arrays
Reply With Quote #1

Hello,
Is it possible to have multidimensional dynamic arrays ?
__________________
['O|s|G'] | Death Wins a.k.a Ish Chhabra was here

Last edited by ish12321; 06-11-2018 at 16:58.
ish12321 is offline
KiLLeR.
Senior Member
Join Date: Jul 2014
Location: Bulgaria
Old 06-11-2018 , 07:59   Re: Multidimensional dynamic arrays
Reply With Quote #2

Yes! https://www.amxmodx.org/api/cellarray/ArrayPushArray
KiLLeR. is offline
ish12321
Veteran Member
Join Date: May 2016
Old 06-11-2018 , 15:06   Re: Multidimensional dynamic arrays
Reply With Quote #3

Is it possible to push 2d array in push? I wish to push 2 strings..
__________________
['O|s|G'] | Death Wins a.k.a Ish Chhabra was here
ish12321 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-11-2018 , 15:25   Re: Multidimensional dynamic arrays
Reply With Quote #4

Quote:
Originally Posted by ish12321 View Post
Is it possible to push 2d array in push? I wish to push 2 strings..
Quote:
Originally Posted by KiLLeR. View Post
__________________

Last edited by HamletEagle; 06-11-2018 at 15:25.
HamletEagle is offline
ish12321
Veteran Member
Join Date: May 2016
Old 06-11-2018 , 15:27   Re: Multidimensional dynamic arrays
Reply With Quote #5

const any:input[]. I want const any:input[][]
__________________
['O|s|G'] | Death Wins a.k.a Ish Chhabra was here
ish12321 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-11-2018 , 16:16   Re: Multidimensional dynamic arrays
Reply With Quote #6

Quote:
Originally Posted by ish12321 View Post
const any:input[]. I want const any:input[][]
I know what you want. Use an enum and ArrayPushArray.
__________________

Last edited by HamletEagle; 06-11-2018 at 16:17.
HamletEagle is offline
ish12321
Veteran Member
Join Date: May 2016
Old 06-11-2018 , 16:58   Re: Multidimensional dynamic arrays
Reply With Quote #7

Quote:
Originally Posted by HamletEagle View Post
I know what you want. Use an enum and ArrayPushArray.
Okay. Thanks
__________________
['O|s|G'] | Death Wins a.k.a Ish Chhabra was here
ish12321 is offline
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 10:33.


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