Empty an Array
How can i empty
WeaponData[ player ][ wpnindex ][ Kills ][ half ] without define the "wpnindex" if in the array we have 6 different wpnindex i want to erase them an the 6 arrays... I mean to empty all the arays that they have [player][kills][half] like i defined |
Re: Empty an Array
The emptying isn't a problem here but the fact that your array has four dimensions. I recommend you to use dDimension. If you need further assistance in emptying a dDimension array I will be happy to help.
|
Re: Empty an Array
Arrays have always be created at the beginning of a statement ( See how the new/static must be inside the form )
if i want a global array not only to a "public" event or function what i must do... what is: Float: fCount; i didn't understood that f2( Float: g{ MyPassedDArray} ) also how can i empty my current array, and how can i find how many wpindexes are in my array with the same "player" "kills" i removed the "half" |
Re: Empty an Array
PHP Code:
[Network] Kill Status: Killer: ProIcons<496> (8) / Victim: Test8 (4) / Weapon: Desert Eagle .50AE / Hitplace: Head / TK: 0 / H [Network] Kills for Player ProIcons<496> with gun Desert Eagle .50 AE = 1.000000 [Network] Deaths for Player Test8 with gun Desert Eagle .50 AE = 2.000000 [Network] Kill Status: Killer: ProIcons<496> (8) / Victim: Test9 (3) / Weapon: Desert Eagle .50AE / Hitplace: Head / TK: 0 / H [Network] Kills for Player ProIcons<496> with gun Desert Eagle .50 AE = 3.000000 [Network] Deaths for Player Test9 with gun Desert Eagle .50 AE = 4.000000 It is incing the same thing.... |
Re: Empty an Array
Quote:
|
Re: Empty an Array
just see my last post...
plus this on public... c{ new Float:WeaponData[ 33 ][ 32 ][ Score ][ 2 ] }; new Float: fCount; |
Re: Empty an Array
Quote:
You can declare the array as global but public declaration is needed only if you are going to use the array from another plugin. Code:
Notice that the array doesn't need to be Float. Use tag _: for easier operation. Edit: So ideally, what you would want to do is only Code:
|
Re: Empty an Array
Ok now, how can i take from here all the arays that they have
common killer Deaths half and find the wpnindex for each ? d{ WeaponData[ killer ][ wpnindex ][ Deaths ][ half ] } and how can i convert a float to integer |
Re: Empty an Array
Quote:
Code:
Quote:
|
Re: Empty an Array
and what about to remove the entry of [Killer] ?
|
| All times are GMT -4. The time now is 19:45. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.