sizeof through an array
#4

Just going to combine what Konstantinos and [uL]Pottus said :P

pawn Код:
#define WEAPON_KILL_SIZE (46)

enum pVars
{
    Password[ 129 ],
    Admin,
    WeaponKills[ WEAPON_KILL_SIZE ]
}

new
    PlayerInfo[ MAX_PLAYERS ][ pVars ],
    bool: is_logged[ MAX_PLAYERS ];
Loop
pawn Код:
new i = 0;
while(i < WEAPON_KILL_SIZE)
{
    //Your code.
    i++;
}

// or

for(new i = 0; i < WEAPON_KILL_SIZE; i++)
{
    //Your code
}
Reply


Messages In This Thread
sizeof through an array - by 2KY - 21.12.2013, 20:58
Re: sizeof through an array - by Konstantinos - 21.12.2013, 21:03
Re: sizeof through an array - by Pottus - 21.12.2013, 21:06
Re: sizeof through an array - by Patrick - 21.12.2013, 21:17
Re: sizeof through an array - by 2KY - 21.12.2013, 21:35

Forum Jump:


Users browsing this thread: 1 Guest(s)