Raised This Month: $ Target: $400
 0% 

Macros calls errors


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 03-07-2011 , 10:31   Macros calls errors
Reply With Quote #1

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_isaliveid)
    
wpmg_clear_bit(g_bit_isconnectedid
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
schmurgel1983
Veteran Member
Join Date: Aug 2006
Location: Germany
Old 03-07-2011 , 14:12   Re: Macros calls errors
Reply With Quote #2

Quote:
Originally Posted by PRoSToTeM@ View Post
error 001: expected token: ";", but found ")"
PHP Code:
    wpmg_clear_bit(g_bit_isaliveid);
    
wpmg_clear_bit(g_bit_isconnectedid); 
u forget ;

wpmg_get_bit(%1,%2);
wpmg_set_bit(%1,%2);
wpmg_clear_bit(%1,%2);
__________________

Working on:
nothing
schmurgel1983 is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 03-07-2011 , 14:48   Re: Macros calls errors
Reply With Quote #3

Quote:
Originally Posted by schmurgel1983 View Post
PHP Code:
    wpmg_clear_bit(g_bit_isaliveid);
    
wpmg_clear_bit(g_bit_isconnectedid); 
u forget ;

wpmg_get_bit(%1,%2);
wpmg_set_bit(%1,%2);
wpmg_clear_bit(%1,%2);
That has nothing to do with his problem.

You need to show more code.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode