![]() |
Scripting Help
I am trying to make a script where it takes your ATM Account and puts every number in a different tempstring like this:
say the ATM Account has 1 million dollars in it. baccount1=1 baccount2=0 baccount3=0 baccount4=0 baccount5=0 baccount6=0 baccount7=0 And let me remind you that this ATM Account will change in amount. And i know how to to do this with a 3 digit number but everything i try never works on a 7 digit number. Can anyone help? |
En Ingles Por Favor?
No Comprendo tu Pregunta. ==================== In Englsh please? I dont understand your quesiton =\ |
I mean you can get certain digets. Such as if ytou want the thousands you can do...
(number/1000 - (number/1000)%1)%10 |
Works
Thanks that script worked quite nicely.
|
Nevermind...that script end up not working all the time, i had my bank account set at 999900 and it displayed 1998900.
Could you maybe tell me what is wrong? here is what i did with the scrip that you gave me. NPC Code: |
i know how sir
use #e also im using an array so to get a value u would do baccount[1] instead of baccount1 (and it starts at 0 not 1) NPC Code: |
Quote:
NPC Code: |
Quote:
IN GRAAL THERE IS STRING AND NUMERICAL VARIABLES SO IF HE WANTS TOO BAD CUZ U CANT DO NETHING BOUT IT u say the stupidest things |
Quote:
if u read the whole thread u would of stfu cuz i answered his Q |
Quote:
when he replied to that guys code he said it didnt work and he posted what he tried giving out his code which was a string called bankaccount learn how to read |
Here we go again. Kaimetsu dont critize (sp?) Liquids effort to help someone with a script when you never help anyone as far as I can tell. You mearly critize their script rather then writing one for them. You'd say to bad this and to bad that and only if this and if only that but do you ever really help people on the forums?
|
Excuse me but, Liquid Ice, You are showing your childish nature to us right now buy insulting grammer when you already have grammer mistakes in your post. I suggest you stop being a hypocrite and stop being so childish. I think its becuase you cannot deal wth the fact that there are people better then you so you take all your anger out on them. Well that does not help. In fact it makes matters worse. Not get out of your booster chair and act like you have reached puberty.
|
falcor u got the whole thing around
|
hey "ur dumb."
|
Wonderfull...This time a thread called "scripting help" falls to an argument...Dont you folks have anything to do besides argue? Hey..Im not saying you have no life...Im just saying...There are better places to argue than in the thread of someone looking for help..Please use at least a little discretion?
|
Quote:
|
Actually Kaimetsu, i want the original bankaccount to go back into string form.
So LiquidIce is right. And i hope one of those scripts work. And bankaccount needs to be strings. But i dont really care if the baccount0-6 are just variables. |
Quote:
|
http://forums.graal2001.com/forums/s...ght=shownumber
thats some thread i posted a function that uses the states.png to put numbers on the screen .. it also goes thru it number by number like u can say this.number=strtofloat(#s(bankaccount)); and it would display all ur money on the screen .. and crap like that |
<[ Delph Inc. ]>
Thanks for posting that script...I wouldn't have known what to do because I'm hopeless with '%', I wouldn't have a clue what to do with it. Same with a few other little symbols...Like...I know it get the remainder of a/b but I just don't know where it could fit in because it's hard to understand how it would get a number you actually want every time...just like the bank script from Liquid. The only way around I had was this: NPC Code: It works fine but only allows '9999899' and it's too long for my liking...the other way should probably make this system script a bit shorter. Well...this isn't the system script...The system script is quite a bit larger...this is only the rupee part...I had a screenshot but when I uploaded it...it practically chewed half the image up...honestly...you would be impressed for it coming from an only average scripter. I'll try get the screen now. </[ Delph Inc. ]>[ |
hehe np =P
I like to make tons of functions and i just call em for system npc's and its easy to edit/add crap in it |
Re: Scripting Help
Quote:
|
Re: Re: Scripting Help
Quote:
if ur not gonna post nething smart then dont post |
| All times are GMT +2. The time now is 10:38 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.