Raised This Month: $ Target: $400
 0% 

Multi-dimensional Arrays format


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 11-05-2011 , 16:54   Re: Multi-dimensional Arrays format
Reply With Quote #6

Btw, reason for why it was only displaying two characters was because your charsmax(g_playerReady[]) is reading the second size of the array g_playerReady[33][2][32] (ie. 2)

And as for the others' comments about doing it "better", you most likely don't need even need this array. You should only have one array for the players' ready state. You can then use "Unready" and "Ready" instead based on their ready state.

You also don't really need to store players' names in the array, and should instead just directly get their name in the function.

Those are based on assumptions, but obviously there would be rare cases where you are doing it correctly.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
 



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 14:22.


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