Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ SMAUG
➜ SMAUG coding
➜ Comiling errors...
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Karn
(6 posts) Bio
|
| Date
| Thu 24 Mar 2005 03:23 PM (UTC) |
| Message
| 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. | | Top |
|
| Posted by
| Zeno
USA (2,871 posts) Bio
|
| Date
| Reply #1 on Thu 24 Mar 2005 03:36 PM (UTC) |
| Message
| 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
|
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
10,598 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top