27.07.2013, 07:19
Suppose I have this -
And now I want to do this-
But that won't work right?
So is there a way to do this? Dynamically allocate memory? Runtime?
pawn Код:
enum _pINFO
{
var
}
new PlayerInfo[MAX_PLAYERS][_pINFO];
stock _function( variable )
{
new counter;
for(.. 'i' loop through all the players )
{
if( PlayerInfo[i][var] == variable ) counter ++;
else continue;
}
}
pawn Код:
online_ = _function( 1 );
new array[online];
So is there a way to do this? Dynamically allocate memory? Runtime?