Quote:
Originally Posted by ProIcons
just see my last post...
plus this on public...
c{ new Float:WeaponData[ 33 ][ 32 ][ Score ][ 2 ] };
new Float: fCount;
|
The variable fCount was used in the tutorial but is not otherwise related to using dDimension arrays.
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:
c{ new _:A[ 33 ][ 32 ][ 3 ][ 2 ] }; //Global array
public func( )
{
//Use the array...
}
func2( )
{
//Use the array...
}
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:
d{ A[ PlayerOrSomething ][ Killer ][ Weapon ][ WhatWasThis ] }++;