Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Incriment?

Author
Message
Commander in Chief
18
Years of Service
User Offline
Joined: 15th Apr 2006
Location: Carbondale, PA, USA
Posted: 22nd Apr 2007 01:36
day = 1

How would I make it so that you can add onto the last day?
EXAMPLE:

Day 1
Day 2
Day 3
and do that every time you run a certain code. Any help?

---PARANOID PRODUCTIONS---
Kiefer Greenspan
20
Years of Service
User Offline
Joined: 11th May 2004
Location: NY
Posted: 22nd Apr 2007 01:43
er, you mean every time as in...

within the code, or with multiple runnings of the code

I don't know the second way, but just use the syntax:
" INC Variable, Value "
works easy
zenassem
21
Years of Service
User Offline
Joined: 10th Mar 2003
Location: Long Island, NY
Posted: 22nd Apr 2007 02:28 Edited at: 22nd Apr 2007 02:35
Not sure exactly what you mean, but I'll try to go by what I see.

Slayer93
20
Years of Service
User Offline
Joined: 5th Aug 2004
Location: I wish I knew
Posted: 22nd Apr 2007 02:28
Use the inc command or just write it out eg. day=day+1

Current Projects - Zio Engine: RPG Engine and OMMO

zenassem
21
Years of Service
User Offline
Joined: 10th Mar 2003
Location: Long Island, NY
Posted: 22nd Apr 2007 02:36
Great I knew I read too much into it.

Oh well.
Kiefer Greenspan
20
Years of Service
User Offline
Joined: 11th May 2004
Location: NY
Posted: 22nd Apr 2007 04:30
LOL funny, zen ^^
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 23rd Apr 2007 00:28
What slayer said in an example:



(Untested but it will mostl likely work, lol)

Commander in Chief
18
Years of Service
User Offline
Joined: 15th Apr 2006
Location: Carbondale, PA, USA
Posted: 3rd May 2007 02:31
Thanks, it did work. Look for a post soon concerning save/load.

---PARANOID PRODUCTIONS---
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 3rd May 2007 09:05
Quote: "Look for a post soon concerning save/load"

View my file access tutorial.


Commander in Chief
18
Years of Service
User Offline
Joined: 15th Apr 2006
Location: Carbondale, PA, USA
Posted: 5th May 2007 06:08
Thanks! Reading now...

---PARANOID PRODUCTIONS---

Login to post a reply

Server time is: 2024-11-25 17:34:36
Your offset time is: 2024-11-25 17:34:36