Problem loops.
#1

Hi.

I actually have a dynamic object system which uses MySQL. When I put down an object using a command, it's saved in my MySQL tables. When I delete it, its row is deleted from the MySQL table ofc.

I have a loop in my code (see below) but entry (my loop variable) is incrementing itself a weird way.

Instead of incrementing normally (1 per 1), it's incrementing 2 per 2.

Anyone knows ? Thanks !

pawn Код:
for(entry = 0; entry < sizeof(ObjetsInfo); entry++)
{
    printf("%d", entry);
    if(!ObjetsInfo[entry][PosX] && !ObjetsInfo[entry][PosY] && !ObjetsInfo[entry][PosZ]) break;
}
Logs for 2 objects:

pawn Код:
[20:12:36] 0
[20:12:39] 0
[20:12:39] 1
[20:12:39] 2
Reply


Messages In This Thread
Problem loops. - by Baltimore - 27.10.2014, 19:19
Re: Problem loops. - by zT KiNgKoNg - 27.10.2014, 20:15
Re : Problem loops. - by Baltimore - 27.10.2014, 20:24
Re : Problem loops. - by Baltimore - 27.10.2014, 20:45
Re: Problem loops. - by Crayder - 27.10.2014, 21:34
Re : Problem loops. - by Baltimore - 27.10.2014, 21:36
Re : Problem loops. - by Baltimore - 27.10.2014, 22:30
Re: Problem loops. - by Vince - 27.10.2014, 22:41
Re: Re : Problem loops. - by nemesis- - 28.10.2014, 00:40
Re: Problem loops. - by Kimossab - 28.10.2014, 01:30

Forum Jump:


Users browsing this thread: 2 Guest(s)