Raised This Month: $ Target: $400
 0% 

Multi Dynamic Arrays - Possible?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 09-22-2013 , 16:00   Re: Multi Dynamic Arrays - Possible?
Reply With Quote #5

Quote:
Originally Posted by ConnorMcLeod View Post
Or dynamic array with pseudo struct (enum), if each item contains 4 strings.

PHP Code:
enum mMiscDatas
{
    
m_szString1[32],
    
m_szString2[32],
    
m_szString3[32],
    
m_szString4[32]
}

new Array:
g_aArray;

public 
plugin_init()
{
    
g_aArray ArrayCreate(mMiscDatas);

I'm sorry. I can't understand how you would retrieve those 4 values. Could you possible make a quick example? Unless it's all stored in one array and you have to split it, then I don't want an example.
__________________

Last edited by Black Rose; 09-22-2013 at 16:00.
Black Rose is offline
 



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 18:48.


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