News
Blabberbox
Galleries
Creations
Stocks
Forums
Guestbook
Contact
Welcome! Please
Login
or
Register
!
October 15, 2024, 10:09:17 PM
pftq Forums
|
Game Design
|
Age of Empires III
|
For loop incrementation by more than one
0 Members and 1 Guest are viewing this topic.
« previous
next »
Latest News!
Lunar Trigger
(Aug 27, 2023)
Pages:
[
1
]
Author
Topic: For loop incrementation by more than one (Read 31270 times)
Neuron
Member
Offline
Posts: 30
For loop incrementation by more than one
«
on:
July 03, 2013, 11:55:53 AM »
@pftq
Did you find a way to make a for loop run by an increment of 2?
This doesn't work:
Code:
for(i=1;i<=X;i+=#) where X is number of times and # is increment
The usual C++ syntax is rejected too
Code:
for (int i=0; i < 10; i++)
Using i = i +2 at the end of the loop is also rejected by the interpreter.
I thought this was a sort of C/C++ implementation, but it doesn't accept common C syntax.
Logged
pftq
Administrator
Offline
Posts: 4202
Re: For loop incrementation by more than one
«
Reply #1 on:
August 31, 2013, 08:02:49 PM »
I've never actually tried. I wouldn't be surprised though. Hopefully doesn't impede things too much
Logged
Pages:
[
1
]
pftq Forums
|
Game Design
|
Age of Empires III
|
For loop incrementation by more than one
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Main
-----------------------------
=> News
=> Blabberbox
===> Recently Read
===> Random Stuff
===> My Links
===> Thought of the Day
===> Stuck in My Head
===> Ideas
===> Society
===> Stories
===> Essays
===> 42
=> General Discussion
=> Site Discussion
-----------------------------
Software and Scripts
-----------------------------
=> Jeopardy / Gameshow Maker
=> SMF Mods and Add-Ons
===> SMF Mailing List Demo
=> Other Scripts and Tools
-----------------------------
Game Design
-----------------------------
=> Age of Empires III
===> Random Map Scripts
===> Castle Blood
===> Fort Wars
=> Age of Mythology
-----------------------------
Stocks and Investing
-----------------------------
=> General Stock and Investing Discussion
=> Tech Trader Discussion
===> The Tech Trader Wall
Powered by SMF 1.1.21
|
SMF © 2006-2007, Simple Machines
|
RSS Feed
Page created in 0.112 seconds with 21 queries.
Loading...