Please, help to solve errors with macros.
Do this macros:
PHP Code:
#define wpmg_get_bit(%1,%2) (%1 & (1 << (%2 & 31)))
#define wpmg_set_bit(%1,%2) (%1 |= (1 << (%2 & 31)))
#define wpmg_clear_bit(%1,%2) (%1 &= ~(1 << (%2 & 31)))
In compilation there are errors:
Code:
// E:\CSO-WPMG SERVER\cstrike\addons\amxmodx\scripting\wpmg_natives.sma(118 -- 1
19) : error 012: invalid function call, not a valid address
// E:\CSO-WPMG SERVER\cstrike\addons\amxmodx\scripting\wpmg_natives.sma(119) : e
rror 001: expected token: ";", but found ")"
// E:\CSO-WPMG SERVER\cstrike\addons\amxmodx\scripting\wpmg_natives.sma(119) : e
rror 029: invalid expression, assumed zero
// E:\CSO-WPMG SERVER\cstrike\addons\amxmodx\scripting\wpmg_natives.sma(119) : f
atal error 107: too many error messages on one line
PHP Code:
wpmg_clear_bit(g_bit_isalive, id)
wpmg_clear_bit(g_bit_isconnected, id)