14.06.2014, 15:13
Wrong (btw read more about y_bit):
The corect form:
Код:
if(Bit_Get(IsPlayerCapturing[playerid][0], TEST) == true)
Код:
// new BitArray:IsPlayerCapturing[MAX_PLAYERS]<36>; // var_a - the player id you are interested ( 0 <= var_a < MAX_PLAYERS ) // var_b - what slot (position, or how you want to call it) you are interested ( 0 <= var_b < 36 ) if(Bit_Get(IsPlayerCapturing[var_a], var_b) == true) { ... }