for() doesnt work (mysql_tquery)
#9

Quote:
Originally Posted by LetsOWN[PL]
Посмотреть сообщение
I mean your solution does not solve the problem in question.

All your code does is just skip anything in the loop when iterator (i) is equal to 0 (because negation of 0 is 1, so does !i).

The problem is that even for:
for(new i = 5; i < 47; i++)

it will give: 0, 1, 2, 3...

Well, at least that's what this thread is about.
Well, my solution gives you what you want.. not counting 0,
if you wanna do "new i = 5" then you must do "if (i < 5) continue;"...

Check your recent changes, maybe something messes this up...
I've never seen such problem tho.

You tried while() ?
Reply


Messages In This Thread
for() doesnt work (mysql_tquery) - by Aa12 - 23.01.2016, 16:13
Re: for() doesnt work (mysql_tquery) - by Prokill911 - 23.01.2016, 16:18
Re: for() doesnt work (mysql_tquery) - by LetsOWN[PL] - 23.01.2016, 16:18
Re: for() doesnt work (mysql_tquery) - by Aa12 - 23.01.2016, 16:30
Re: for() doesnt work (mysql_tquery) - by amirm3hdi - 23.01.2016, 16:35
Re: for() doesnt work (mysql_tquery) - by LetsOWN[PL] - 23.01.2016, 16:37
Re: for() doesnt work (mysql_tquery) - by amirm3hdi - 23.01.2016, 16:42
Re: for() doesnt work (mysql_tquery) - by LetsOWN[PL] - 23.01.2016, 16:47
Re: for() doesnt work (mysql_tquery) - by amirm3hdi - 23.01.2016, 16:55
Re: for() doesnt work (mysql_tquery) - by Aa12 - 23.01.2016, 16:59

Forum Jump:


Users browsing this thread: 1 Guest(s)