[Include] rBits [supports 16, 8, 4, 2 and 1-bit arrays]
#40

pawn Code:
new
    g_iBit1_pData[eBit1_pData] <MAX_PLAYERS>
;
Change to

pawn Code:
new
    Bit1:g_iBit1_pData[eBit1_pData] <MAX_PLAYERS>
;
Because people will start crying if get errors again. I fixed it and now testing is that really good as it is.

Question:
Bit1 - using only for variables what setting 0 or 1? yes? (false/true)
Bit2 - ? i don't know other because i'm from Poland and i need to explain it clearly, sorry. Maybe i will find some help on ****** with Eng maybe.

By the way nice include.

edit://
Nice with Bit1. I tested pSpawned with enum on standard way and Bit1. Results:

Code:
rBits - 410bytes
Normal way - 1,69 kilobyte.
I think i will start to change my GameMode.. but for the first i need to learn other Bit values. But there's an errors when i put this in.

Code:
C:\Documents and Settings\Kakarotto\Pulpit\Serwery\Live\pawno\include\YSI\y_bit.inc(245) : warning 209: function "Bit_Set" should return a value
C:\Documents and Settings\Kakarotto\Pulpit\Serwery\Live\pawno\include\YSI\y_bit.inc(248) : warning 209: function "Bit_Set" should return a value
C:\Documents and Settings\Kakarotto\Pulpit\Serwery\Live\pawno\include\rBits.inc(70) : error 025: function heading differs from prototype
C:\Documents and Settings\Kakarotto\Pulpit\Serwery\Live\pawno\include\rBits.inc(70) : error 025: function heading differs from prototype
C:\Documents and Settings\Kakarotto\Pulpit\Serwery\Live\pawno\include\rBits.inc(71) : error 021: symbol already defined: "Bit_Set"
C:\Documents and Settings\Kakarotto\Pulpit\Serwery\Live\pawno\include\rBits.inc(73) : warning 219: local variable "bitVar" shadows a variable at a preceding level
C:\Documents and Settings\Kakarotto\Pulpit\Serwery\Live\pawno\include\rBits.inc(74) : warning 219: local variable "bitLim" shadows a variable at a preceding level
C:\Documents and Settings\Kakarotto\Pulpit\Serwery\Live\pawno\include\rBits.inc(85) : error 001: expected token: "-identifier-", but found "("
C:\Documents and Settings\Kakarotto\Pulpit\Serwery\Live\pawno\include\rBits.inc(91) : error 010: invalid function or declaration
C:\Documents and Settings\Kakarotto\Pulpit\Serwery\Live\pawno\include\rBits.inc(92) : error 010: invalid function or declaration
C:\Documents and Settings\Kakarotto\Pulpit\Serwery\Live\pawno\include\rBits.inc(94) : error 010: invalid function or declaration
C:\Documents and Settings\Kakarotto\Pulpit\LiveFor3Run.pwn(2299) : warning 203: symbol is never used: "bitLim"
C:\Documents and Settings\Kakarotto\Pulpit\LiveFor3Run.pwn(2299) : warning 203: symbol is never used: "bitVar"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


7 Errors.
Using includes:
pawn Code:
#include                                    "a_samp"
#include                                    "streamer"
#include                                    "sscanf"
#include                                    "zcmd"
//#include                                  "audio"

#include                                    "live_textdraws"

#include                                    "YSI\y_ini"
#include                                    "YSI\y_groups"
#include                                    "YSI\y_classes"

#include                                    "rBits"
I think just ****** included somewhere his y_bit include into one of above includes what i included. I will try to solve it..

edit2://
Solved. Just changed names of Bit to rBits in your include.

Question:
In the future we will be able to set Bit into 'non-player' var? example for ServerInfo enum count ConnectedPlayers. It doesn't need <MAX_PLAYERS>.
Reply


Messages In This Thread
rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by RyDeR` - 08.08.2011, 14:47
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by Ash. - 08.08.2011, 14:50
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by VivianKris - 08.08.2011, 14:54
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by Zh3r0 - 08.08.2011, 14:56
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by RyDeR` - 08.08.2011, 15:07
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by Zh3r0 - 08.08.2011, 15:09
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by Kaperstone - 08.08.2011, 15:23
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by OUL - 08.08.2011, 15:27
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by RyDeR` - 08.08.2011, 15:31
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by OUL - 08.08.2011, 15:35
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by Zh3r0 - 08.08.2011, 15:38
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by Double-O-Seven - 08.08.2011, 15:54
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by Zh3r0 - 08.08.2011, 16:06
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by vyper - 08.08.2011, 16:08
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by OUL - 08.08.2011, 16:14
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by Double-O-Seven - 08.08.2011, 16:21
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by OUL - 08.08.2011, 16:22
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by RyDeR` - 08.08.2011, 16:23
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by OUL - 08.08.2011, 16:26
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by Zh3r0 - 08.08.2011, 16:26
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by RyDeR` - 08.08.2011, 16:38
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by Zh3r0 - 08.08.2011, 16:43
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by OUL - 08.08.2011, 16:47
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by Zh3r0 - 08.08.2011, 16:56
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by OUL - 08.08.2011, 16:58
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by Zh3r0 - 08.08.2011, 16:59
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by Toni - 08.08.2011, 17:12
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by Kaperstone - 08.08.2011, 21:21
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by Double-O-Seven - 14.08.2011, 08:33
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by RyDeR` - 14.08.2011, 13:08
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by Lorenc_ - 18.08.2011, 11:06
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by royal_king - 18.08.2011, 11:23
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by System64 - 18.08.2011, 11:49
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by RyDeR` - 18.08.2011, 11:58
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by Rock_Ro - 18.08.2011, 15:03
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by System64 - 18.08.2011, 16:47
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by RyDeR` - 19.08.2011, 09:22
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by System64 - 19.08.2011, 10:27
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by RyDeR` - 19.08.2011, 15:23
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by Riddick94 - 19.08.2011, 15:50
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by Lorenc_ - 21.08.2011, 01:43
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by RyDeR` - 21.08.2011, 02:17
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by System64 - 21.08.2011, 14:11
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by GangsTa_ - 22.08.2011, 15:52
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by Lorenc_ - 24.08.2011, 09:03
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by Gh0sT_ - 28.08.2011, 00:14
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by RyDeR` - 28.08.2011, 02:37
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by Lorenc_ - 28.08.2011, 03:46
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by System64 - 28.08.2011, 08:45
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by oFLu - 28.08.2011, 08:50
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by Dwane - 08.02.2012, 18:15
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by RyDeR` - 08.02.2012, 18:21
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by Dwane - 08.02.2012, 19:27
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by RyDeR` - 23.02.2012, 23:10
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by Dwane - 27.02.2012, 20:54
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by Slice - 05.02.2016, 12:11
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by IgoRangel - 02.08.2016, 23:43
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by justice96 - 10.08.2016, 00:42
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by AbyssMorgan - 10.08.2016, 07:09
Re: rBits [supports 16, 8, 4, 2 and 1-bit arrays] - by Bussyman - 27.04.2017, 08:54

Forum Jump:


Users browsing this thread: 10 Guest(s)