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: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,039 |
Nodes: | 16 (0 / 16) |
Uptime: | 15:21:13 |
Calls: | 500,926 |
Calls today: | 3 |
Files: | 109,372 |
D/L today: |
2,896 files (490M bytes) |
Messages: | 305,290 |