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


Register forum user name Search FAQ

Gammon Forum

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

Comiling errors...

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Karn   (6 posts)  [Biography] 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.
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] 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
[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.


7,888 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

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

[Best viewed with any browser - 2K]    [Hosted at HostDash]