Comiling errors...

Posted by Karn on Thu 24 Mar 2005 03:23 PM — 2 posts, 11,110 views.

#0
skills_android.c:2297:66: macro "xIS_SET" requires 2 arguments, but only 1 given

this is the first time i have used this macro in an actual code and it's making me worry cause I don't understand what it's wanting... I'm, of course, using DBSaga Codebase 2.5(avalible at dbsdevelop.tk).

the line of code is:

if( xIS_SET(ch->pcdata->learned[gsn_t4] = 100) );
{
send_to_char("You already have that!" , ch);
return;
}

maybe it's just me being stupid, but I have no idea what i'm doing after 4 months of coding this stupid thing lol.
USA #1
xIS_SET checks if a bit flag is set. You'll want to use this ifcheck:
ch->pcdata->learned[gsn_t4] == 100

I think. Or if you're trying to check if they know the skill, use this:
ch->pcdata->learned[gsn_t4] > 0