Hrm. Is there easier way to set a variable with the total amount of credits user has rather then reading from xtrn.dat or some other drop file?
Currently I have it reading xtrn.dat and taking the credits line and that my 'credits' variable, is there any other way to do this?
Use the global variable: _USERON.CDT
If you want to modify the user's credits, then use the function: ADJUST_USER_CREDITS
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
set a_credit 10
fwrite mod_file a_credit
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 said that I wanted to have a credits variable and add, mul, or whatever the user enters against that variable.
You can modify _USERON.CDT as it is a read-only variable.
1) Doesn't FWRITE output the integer in BINARY?
I'd check the BAJA documentation looking for a verb called "FPRINT" and see it did something different to "FWRITE" if I were you.
ADJUST_USER_CREDITS supports integer variables. Example:
You can modify _USERON.CDT as it is a read-only variable.
Should that be "can not" modify? :-)
Sysop: | Tandy |
---|---|
Location: | New York, USA |
Users: | 15 |
Nodes: | 13 (0 / 13) |
Uptime: | 65:43:43 |
Calls: | 335 |
Messages: | 113,200 |