27.10.2014, 19:19
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 !
Logs for 2 objects:
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;
}
pawn Код:
[20:12:36] 0
[20:12:39] 0
[20:12:39] 1
[20:12:39] 2