ThreadBoard ArchivesSite FeaturesActiveworlds SupportHistoric Archives |
Problems with aw_citizen_add()... (Sdk)
Problems with aw_citizen_add()... // Sdktoo bigNov 29, 1998, 4:29pm
<HTML>
<FONT FACE="Arial,Helvetica"> 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> int rc;</TT><TT></TT> <P><TT> aw_int_set (AW_CITIZEN_NUMBER, 0);</TT> <BR><TT> aw_string_set (AW_CITIZEN_NAME, "George");</TT> <BR><TT> aw_string_set (AW_CITIZEN_PASSWORD, "secret");</TT> <BR><TT> aw_string_set (AW_CITIZEN_EMAIL, "george at xyz.com");</TT> <BR><TT> aw_int_set (AW_CITIZEN_TERM, 365);</TT> <BR><TT> aw_bool_set (AW_CITIZEN_BETA, FALSE);</TT> <BR><TT> if (rc = aw_citizen_add ())</TT> <BR><TT> printf ("Unable to add citizen (reason %d)\n", rc);</TT> <BR><TT> else</TT> <BR><TT> printf ("Citizen #%d added\n", aw_int(AW_CITIZEN_NUMBER));</TT><TT></TT> <P><FONT FACE="Arial,Helvetica"> 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 bigNov 29, 1998, 4:30pm
<HTML>
Mmmmm a bit of grammar problems in the first line there, woops :) [View Quote] <P><FONT FACE="Arial,Helvetica"> 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> int rc;</TT> <P><TT> aw_int_set (AW_CITIZEN_NUMBER, 0);</TT> <BR><TT> aw_string_set (AW_CITIZEN_NAME, "George");</TT> <BR><TT> aw_string_set (AW_CITIZEN_PASSWORD, "secret");</TT> <BR><TT> aw_string_set (AW_CITIZEN_EMAIL, "george at xyz.com");</TT> <BR><TT> aw_int_set (AW_CITIZEN_TERM, 365);</TT> <BR><TT> aw_bool_set (AW_CITIZEN_BETA, FALSE);</TT> <BR><TT> if (rc = aw_citizen_add ())</TT> <BR><TT> printf ("Unable to add citizen (reason %d)\n", rc);</TT> <BR><TT> else</TT> <BR><TT> printf ("Citizen #%d added\n", aw_int(AW_CITIZEN_NUMBER));</TT> <P><FONT FACE="Arial,Helvetica"> 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> </HTML> |