Quote:
Originally Posted by xPaw
Or
PHP Code:
for( new i = 3; i < 6; i++ ) { if( get_msg_arg_int( i ) != g_iDefuserColor[ i ] ) { set_msg_arg_int( i, ARG_BYTE, g_iDefuserColor[ i ] ); } }
xD
|
No, then you would have to do:
PHP Code:
for( new i = 3; i < 6; i++ )
{
if( get_msg_arg_int( i ) != g_iDefuserColor[ i - 3 ] )
{
set_msg_arg_int( i, ARG_BYTE, g_iDefuserColor[ i - 3 ] );
}
}
Which would be just the same exolent did. The only cpu optimization you could do is this, somehow it takes more memory obviously:
PHP Code:
new const g_iDefuserColor[ 6 ] = { 0, 0, 0, 255, 0, 255 };