Bit_Get problem
#4

Wrong (btw read more about y_bit):
Код:
if(Bit_Get(IsPlayerCapturing[playerid][0], TEST) == true)
The corect form:
Код:
// 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) {
...
}
Reply


Messages In This Thread
Bit_Get problem - by Battlezone - 14.06.2014, 12:50
Re: Bit_Get problem - by Jessyy - 14.06.2014, 13:00
Re: Bit_Get problem - by Battlezone - 14.06.2014, 13:01
Re: Bit_Get problem - by Jessyy - 14.06.2014, 15:13
Re: Bit_Get problem - by Battlezone - 14.06.2014, 16:55

Forum Jump:


Users browsing this thread: 1 Guest(s)