RE: variableãBY: altere to Digital Man on Thu Dec 28 2000 01:00 amãã > > Use the global variable: _USERON.CDTã > >ã > > If you want to modify the user's credits, then use the function:ã > > ADJUST_USER_CREDITSã > ã > hrm, the adjust_user_credits won't work for what I'm doing as the amount ofã > credits isn't ever the same, it's based on some things the user enters. HavããAlright, perhaps some help with this.. This is just a piece of it and I'veãlimited some things for testing.. Basically it asks for a few numbers from theãuser and add's subtracts, etc... Now, real basic here without adding orãsubtracting.ããint a_credit u_level mod_fileãset a_credit 10ããfopen mod_file O_CREAT|O_WRONLY "%nmoduser.dat"ãif_falseã print "error\r\n"ã returnãend_ifããfwrite mod_file a_creditãfclose mod_fileããNow, this obviously creates the moduser.dat (i've verified) but it's justãputting a blank line in there rather then 10. Now if the credit adjustmentãwere going to be the same everytime then I would use adjust_credits but thatãisn't the case, a_credit will ALWAYS be different, I just set it to 10 forãtesting purposes. Any ideas? Oh, ignore u_level, once I fix a_credit I canãfix u_level; I've commented out the level info so that what I'm showing here isãactualy what I'm working with. ããããã---ã þ Synchronet þ Dark Dimension ááS ú
telnet://dark.dimension-bbs.com ú Hit Me!ã