Need some help with bit array
#6

let's imagine a 6x4 grid:
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0

like if there is 6 players, and 4 property overall. the grid contains a marker.
for example, if player 3 has a key to car #2, the grid changes that way:
0 0 0 0 0 0
0 0 1 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0

I don't need anything apart from 0 and 1. I need one bit.
new var[6][4]; vs new bool:var[6][4]; :
the first one can be from 0 to 4294967295. it stores 32 bits. i need 1 bit.
the second one can be from 0 to 1. it stores 1 bit.

remember.. this is a 6x4 grid. imagine that on a 2048x500 grid. i need only 1 bit...
Reply


Messages In This Thread
Need some help with bit array - by KoczkaHUN - 08.08.2011, 09:35
Re: Need some help with bit array - by CaHbKo - 08.08.2011, 09:37
Re: Need some help with bit array - by KoczkaHUN - 08.08.2011, 09:45
Re: Need some help with bit array - by FireCat - 08.08.2011, 09:47
Re: Need some help with bit array - by Babul - 08.08.2011, 10:42
Re: Need some help with bit array - by KoczkaHUN - 08.08.2011, 10:57

Forum Jump:


Users browsing this thread: 2 Guest(s)