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: | Jacob Catayoc |
|---|---|
| Location: | Pasay City, Metro Manila, Philippines |
| Users: | 5 |
| Nodes: | 4 (0 / 4) |
| Uptime: | 17:29:38 |
| Calls: | 117 |
| Calls today: | 117 |
| Files: | 367 |
| D/L today: |
518 files (245M bytes) |
| Messages: | 70,795 |
| Posted today: | 26 |