which is better
Code:
for ( gi_cvarnum = 0; gi_cvarnum < 80; gi_cvarnum++ )
{
gi_cvar = g_cvars[gi_cvarnum]
for ( gi_playernum = 0; gi_playernum < gi_playercnt; gi_playernum++ )
{
gi_playerID = gi_players[gi_playernum]
or is this also correct?
Code:
for ( gi_cvarnum = 0; gi_cvarnum < 80; gi_cvarnum++ )
for ( gi_playernum = 0; gi_playernum < gi_playercnt; gi_playernum++ )
{
gi_cvar = g_cvars[gi_cvarnum]
gi_playerID = gi_players[gi_playernum]
Someone please tell me if both are the same and which one is better to use. I need both conditions to be true and use gi_cvar and gi_playerID together in the same statement following these conditions.