Raised This Month: $ Target: $400
 0% 

Once More array issue


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ProIcons
Senior Member
Join Date: Jan 2009
Location: Greece - Salonica
Old 07-06-2012 , 02:14   Re: Once More array issue
Reply With Quote #4

In the ddimension.inc that you can add more than 3 dimensions to an array I'm Using it like this

c{ new _layerData[ MAXPLAYERS ][ Score ][ 3 ][ 3 ]};
c{ new _:g_RoundData[MAXPLAYERS][MAXPLAYERS][3][3][Score][3][5]}; //[Killer][Victim][HitPlace][WeaponIndex][Type][Round][Array Size] ;Number
c{ new _:g_WeaponData[MAXPLAYERS][3][Score][3][4]}; //[Killer][WeaponIndex][Type][Round][Array Size] ;Number
c{ new _:g_WeaponDamage[MAXPLAYERS][3][g_DType][3][4]}; //[Killer][WeaponIndex][Type][Round][Array Size] ;Damage
c{ new _:g_HitPlaceDamage[MAXPLAYERS][MAXPLAYERS][3][3][g_DType][3][5]}; //[Killer][Victim][HitPlace][WeaponIndex][Type][Round][Array Size] ;Damage

And Then

d{PlayerData[g_PlayerIDs[g_defuser]][XP][1]}-=15;
WORKS
__________________
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