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
➜ package delivery code
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Mixoplix
(8 posts) Bio
|
| Date
| Wed 14 Aug 2002 09:45 PM (UTC) |
| Message
| Another stupid declaration problem...Thanks for all your help btw Nick, I really appreciate your swift responses. Anyways here is a new problem for ya:
I'm getting this error with this code.
'Player' undeclared (first use in this function)
here is the code:
if (ch->level > 1)
{
char motdbuf[MAX_STRING_LENGTH];
FILE *fp;
sprintf( motdbuf, "%s%s", MAIL_DIR, capitalize( ch->name ) );
if ( ( fp = fopen( motdbuf, "r" ) ) != NULL )
{
xSET_BIT(ch->act, PLR_GOTMAIL);
fclose(fp);
}
}
All that I can come up with is the %s%s is the directed 'player' declaration. As I don't have the word "player" anywhere. Where would I declare something like this?
Thanks, Mix | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Wed 14 Aug 2002 11:54 PM (UTC) |
| Message
| I gather this is non-standard SMAUG, because I can't find PLR_GOTMAIL.
Probably PLR_GOTMAIL is a define which incorporates the word player. eg. (just guessing)
#define PLR_GOTMAIL (player->mail & 1) |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | 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,536 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top