19.08.2011, 15:50
(
Last edited by Riddick94; 19/08/2011 at 04:41 PM.
)
pawn Code:
new
g_iBit1_pData[eBit1_pData] <MAX_PLAYERS>
;
pawn Code:
new
Bit1:g_iBit1_pData[eBit1_pData] <MAX_PLAYERS>
;
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.
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.
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"
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>.