Thread

Problems with aw_citizen_add()... (Sdk)

Problems with aw_citizen_add()... // Sdk

1  |  

too big

Nov 29, 1998, 4:29pm
<HTML>
<FONT FACE="Arial,Helvetica">&nbsp;&nbsp;&nbsp; It would appear, that there
is some sort of problem with the AW_CITIZEN_ADD() function when I noticed
an error,</FONT>
<BR><FONT FACE="Arial,Helvetica">it had to have been an error in the API
Reference or the sdk</FONT>
<BR><FONT FACE="Arial,Helvetica">itself. Anyways, I noticed in teh docs
it used the</FONT>
<BR><FONT FACE="Arial,Helvetica">AW_CITIZEN_TERM attribute for how many
days until the</FONT>
<BR><FONT FACE="Arial,Helvetica">citizenship terminates (as desribed in
teh API Reference)...</FONT>

<P><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
rc;</TT><TT></TT>

<P><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; aw_int_set (AW_CITIZEN_NUMBER,
0);</TT>
<BR><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; aw_string_set (AW_CITIZEN_NAME,
"George");</TT>
<BR><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; aw_string_set (AW_CITIZEN_PASSWORD,
"secret");</TT>
<BR><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; aw_string_set (AW_CITIZEN_EMAIL,
"george at xyz.com");</TT>
<BR><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; aw_int_set (AW_CITIZEN_TERM,
365);</TT>
<BR><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; aw_bool_set (AW_CITIZEN_BETA,
FALSE);</TT>
<BR><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (rc = aw_citizen_add
())</TT>
<BR><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf ("Unable to add
citizen (reason %d)\n", rc);</TT>
<BR><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else</TT>
<BR><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf ("Citizen #%d
added\n", aw_int(AW_CITIZEN_NUMBER));</TT><TT></TT>

<P><FONT FACE="Arial,Helvetica">&nbsp;&nbsp;&nbsp; However, if you will
wook thru aw.h there apperas to be no</FONT>
<BR><FONT FACE="Arial,Helvetica">AW_CITIZEN_TERM...</FONT><FONT FACE="Arial,Helvetica"></FONT>

<P><FONT FACE="Arial,Helvetica">Hmmm...</FONT><FONT FACE="Arial,Helvetica"></FONT>

<P><FONT FACE="Arial,Helvetica">-TooBig</FONT>
<BR><FONT FACE="Arial,Helvetica">-TooBig at Earthling.net</FONT><FONT FACE="Arial,Helvetica"></FONT>

<P><FONT FACE="Arial,Helvetica">ImaBot</FONT></HTML>

too big

Nov 29, 1998, 4:30pm
<HTML>
Mmmmm a bit of grammar problems in the first line there, woops :)

[View Quote] <P><FONT FACE="Arial,Helvetica">&nbsp;&nbsp;&nbsp; It would appear, that
there is some sort of problem with the AW_CITIZEN_ADD() function when I
noticed an error,</FONT>
<BR><FONT FACE="Arial,Helvetica">it had to have been an error in the API
Reference or the sdk</FONT>
<BR><FONT FACE="Arial,Helvetica">itself. Anyways, I noticed in teh docs
it used the</FONT>
<BR><FONT FACE="Arial,Helvetica">AW_CITIZEN_TERM attribute for how many
days until the</FONT>
<BR><FONT FACE="Arial,Helvetica">citizenship terminates (as desribed in
teh API Reference)...</FONT>

<P><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
rc;</TT>

<P><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; aw_int_set (AW_CITIZEN_NUMBER,
0);</TT>
<BR><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; aw_string_set (AW_CITIZEN_NAME,
"George");</TT>
<BR><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; aw_string_set (AW_CITIZEN_PASSWORD,
"secret");</TT>
<BR><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; aw_string_set (AW_CITIZEN_EMAIL,
"george at xyz.com");</TT>
<BR><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; aw_int_set (AW_CITIZEN_TERM,
365);</TT>
<BR><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; aw_bool_set (AW_CITIZEN_BETA,
FALSE);</TT>
<BR><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (rc = aw_citizen_add
())</TT>
<BR><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf ("Unable to add
citizen (reason %d)\n", rc);</TT>
<BR><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else</TT>
<BR><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf ("Citizen #%d
added\n", aw_int(AW_CITIZEN_NUMBER));</TT>

<P><FONT FACE="Arial,Helvetica">&nbsp;&nbsp;&nbsp; However, if you will
wook thru aw.h there apperas to be no</FONT>
<BR><FONT FACE="Arial,Helvetica">AW_CITIZEN_TERM...</FONT>

<P><FONT FACE="Arial,Helvetica">Hmmm...</FONT>

<P><FONT FACE="Arial,Helvetica">-TooBig</FONT>
<BR><FONT FACE="Arial,Helvetica">-TooBig at Earthling.net</FONT>

<P><FONT FACE="Arial,Helvetica">ImaBot</FONT></BLOCKQUOTE>
&nbsp;</HTML>

1  |  
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn