-
Adding credits w/baja
From
Bigjoe@VERT/BLUETHR to
All on Thu Jan 27 20:21:00 2005
Well, I been trying to find out my when I add credits to a users account in aãbaja script. This is what happensãããI want to add 1000 credits and for some reason it adds 1,024,000 credits to theãusers account, and not just 1000 like I wanted, any one have any ideas aboutãwhats gong on.ãããThanksããJoeãããã---ã þ Synchronet þ Blue Thunder - bluethunder.dtdns.net or bluethr.synchro.netã
-
From
Digital Man@VERT to
Bigjoe on Thu Jan 27 19:00:15 2005
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 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 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ããSnapple "Real Fact" #58:ãA sneeze travels out of your nose at 100mph.ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Angus Mcleod@VERT/ANJO to
Bigjoe on Thu Jan 27 23:55:00 2005
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 to ã > users account, and not just 1000 like I wanted, any one have any ideas aboutã > 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. So you can't add 1,000 but you can add ã1,024 by doingãã ADJUST_USER_CREDITS 1ããã---ã þ Synchronet þ Where we BAJA Rob into writing our modules. The ANJO
BBSã
-
From
Bigjoe@VERT/BLUETHR to
Digital Man on Thu Jan 27 22:51:00 2005
Re: Adding credits w/bajaã By: Digital Man to Bigjoe on Thu Jan 27 2005 07:00 pmãã > 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ã > ããOk, thats why. I thought 100 credit ment 100 credits, not 100k in credits.ãThanks. Thats what I neededããJoeãããã---ã þ Synchronet þ Blue Thunder - bluethunder.dtdns.net or bluethr.synchro.netã
-
From
Digital Man@VERT to
Angus Mcleod on Thu Jan 27 23:49:58 2005
Re: Adding credits w/bajaã By: Angus Mcleod to Bigjoe on Thu Jan 27 2005 11:55 pmãã > 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.ãã:-)ããInitially, credits only applied to file transfers, so 1 credit = 1 byteã(basically). Hence the reference to "kilobytes" in the baja docs.ãã digital manããSnapple "Real Fact" #31:ãThe average human will eat an average of 8 spiders while sleeping.ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ
[vert/cvs/bbs].synchro.netã