Raised This Month: $ Target: $400
 0% 

Array Problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 04-20-2012 , 13:38   Re: Array Problem
Reply With Quote #2

PHP Code:
enum /* Steps */
{
  
STEP_READING 1STEP_WATCHINGSTEPS_COUNT
};

new 
g_iStepsSTEPS_COUNT ];

enum /* Statuses */
{
  
STATUS_IDLE 1STATUS_ACTIVESTATUSES_COUNT
};

new 
g_sPlayersStatuses33 /* MAX_PLAYERS */ ][ STATUSES_COUNT ][ 32 /* Maximum characters in string */ ];

/* Now you'll be able to do this: */

formatexg_sPlayersStatusesiPlayer ][ STATUS_IDLE ], 31"%s""Staying inactived" );
formatexg_sPlayersStatusesiPlayer ][ STATUS_ACTIVE ], 31"%s""Doing something" ); 
And about this, please check function formatex to see the diference between format and formatex.

Quote:
Originally Posted by ProIcons View Post
format(g_activesub[ret_getuser_id(id)][Status],31,"%s",status);

Last edited by claudiuhks; 04-20-2012 at 13:48.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
 



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 07:50.


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