[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  Comiling errors...

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Comiling errors...

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by Karn   (6 posts)  [Biography] bio
Date Thu 24 Mar 2005 03:23 PM (UTC)  quote  ]
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.
[Go to top] top

Posted by Zeno   USA  (2,867 posts)  [Biography] bio   Moderator
Date Reply #1 on Thu 24 Mar 2005 03:36 PM (UTC)  quote  ]
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
[Go to top] 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.


1,163 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]