Raised This Month: $ Target: $400
 0% 

Once More array issue


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ProIcons
Senior Member
Join Date: Jan 2009
Location: Greece - Salonica
Old 07-04-2012 , 03:51   Once More array issue
Reply With Quote #1

I have these arrays
PHP Code:
new PlayerHostages[MAXPLAYERS];
new 
PlayerHeadShotsMAXPLAYERS ][ ];
new 
PlayerHeadShotsGunMAXPLAYERS ][ 32 ];
new 
PlayerDamageMAXPLAYERS ][ g_Damage ]; 
I haven't really state their size, But when i'm trying for example to add the array size at the end

PHP Code:
new PlayerHostages[MAXPLAYERS][3]; 
Then i can't set to it an integer value. Well at the moment i'm using them like this:
PHP Code:
PlayerHostages[g_PlayerIDs[id]]++; 
and i want to keep ehm work them like that because it is easy

How can i make it work by defining ARRAY size...? Because sometimes in the server sends me an error about the array is out of bounds.. and etc.
__________________
function rb return $regsubex($$1-,/(.)/g,$+($chr(2) $+ $chr(3),$r(2,15),$chr(2),\1))
ProIcons 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 15:15.


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