Raised This Month: $ Target: $400
 0% 

Global array


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 10-21-2012 , 15:37   Re: Global array
Reply With Quote #20

using dynamic arrays...

Code:
CreateArray

Syntax:
native Handle:CreateArray(blocksize=1, startsize=0);

Usage:
 blocksize		The number of cells each member of the array can hold.  For example, 32 cells is equivalent to: new Array[X][32]
 startsize		Initial size of the array.  Note that data will NOT be auto-intialized.
PHP Code:
new Handle:g_SteamIdArray;

g_SteamIdArray CreateArray(21); //<-- Number of cells each member can have..
PushArrayString(g_SteamIdArray SteamIdGoesHere); //<--- To set a string value 

Last edited by Doc-Holiday; 10-21-2012 at 15:39.
Doc-Holiday 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 11:41.


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