Pretty hard question
#1

Hi everyone, i need to change for example only the "8" in this value "Veh1doors1 = 33686016" and everyother number stay the same, and again, a different command has to change lets say only "6" in the value.

Is that possible?
Reply
#2

I'm not sure about that. But I suggest you wait for a much more professional scripter than me.
Good Luck!
Reply
#3

Cheers mate, will need the luck to solve this out lol

Anyone?
Reply
#4

It wont be easy. Do you need to perform some mathematical operations with the value? If not, storing the number as string would make this easy.

Edit: Why do you need to do it? Could there be some other say to accomplish youf goal without changing an integer in a number?
Reply
#5

Mr.Mat went offline, hopefully when he returns, he might reply to your post, Johnson.
Reply
#6

@Johnson_boy

I'm 80% done with my car system. I want to create a really detailed car system for heavy RP servers not those crappy one where u sit in car and it asks you if you want to buy it, all dialog from saloon, you select colors and stuff, then this is the PART i need to do, it saves damage like the engine is 800.00 and but when it respawns it respawns with lets say you broke the doors, the doors will be broken. Thats how i want it and everything works. Now if the door is open, i want the mechanic to go to shop but passagers side doors and fit only them instead of fixing the whole car thats where i need to change only "8" or "6"


wrote it quick, if you dont understand just say it, ill re type it
Reply
#7

Ahh mann, i don't thinks its possible really because there could be four 8's or even more.


Anyway cheers belhot, i will used that at some point, looks useful +rep
Reply
#8

One more question: Do you know the place of the number? For instance with number 33686016, do you know already beforehand that 8, which should be changed is 4th number?

If you do, creating the function will be again easier.
Reply
#9

Wow, still can't figure it out? Lol. Your really in a merda situation. lol
Reply
#10

Quote:
Originally Posted by RTR12
Посмотреть сообщение
Wow, still can't figure it out? Lol. Your really in a merda situation. lol
Can you then?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)