Well, I been trying to find out my when I add credits to a users account in baja script. This is what happens
I want to add 1000 credits and for some reason it adds 1,024,000 credits to users account, and not just 1000 like I wanted, any one have any ideas about whats gong on.
I want to add 1000 credits and for some reason it adds 1,024,000 credits to users account, and not just 1000 like I wanted, any one have any ideas about whats gong on.
Re: Adding credits w/baja
By: Bigjoe to All on Thu Jan 27 2005 08:21 pm
Well, I been trying to find out my when I add credits to a users account baja script. This is what happens
I want to add 1000 credits and for some reason it adds 1,024,000 credits users account, and not just 1000 like I wanted, any one have any ideas ab whats gong on.
I think baja.html pretty much spells it out:
ADJUST_USER_CREDITS <#>
args: adj
------------------------
This function is used to add or subtract credits from the current user. The 'adj' argument must be either a positive or negative number (in Kilobytes). Example, to subtract 100K in credits from the current user:
ADJUST_USER_CREDITS -100
If you want finer adjustment of user creditss (not in Kilobyte increments), you'll need to use another method (JS or moduser.dat or something).
digital man
Re: Adding credits w/baja
By: Bigjoe to All on Thu Jan 27 2005 20:21:00
I want to add 1000 credits and for some reason it adds 1,024,000 credits users account, and not just 1000 like I wanted, any one have any ideas ab whats gong on.
1,024,000 is 1,000K. Lookit:
ADJUST_USER_CREDITS <#>
args: adj
------------------------
This function is used to add or subtract credits from the current
user. The 'adj' argument must be either a positive or negative number
(in Kilobytes). Example, to subtract 100K in credits from the current
user:
ADJUST_USER_CREDITS -100
Notice the "(in Kilobytes)" which by the way is *wrong* because you don't measure Credits in bytes, Kilo- or otherwise, but in any event the number you specify is in KiloCredits.
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,025 |
Nodes: | 17 (1 / 16) |
Uptime: | 47:45:12 |
Calls: | 503,205 |
Calls today: | 12 |
Files: | 222,076 |
D/L today: |
10,050 files (1,635M bytes) |
Messages: | 440,157 |
Posted today: | 2 |