Problem SQL data
#1

Yo,

I've a problem with my data, I recovered the "newid" 1, 2, ..., 9 and NOT 15!

pawn Код:
new newid;
for(new i; i < rows; i++)
{
    newid                           = cache_get_field_content_int(i, "id");
    printf("%d", newid);
   
    bIntInfo[newid][bIntPos][0]     = cache_get_field_content_float(i, "posx");
    bIntInfo[newid][bIntPos][1]     = cache_get_field_content_float(i, "posy");
    bIntInfo[newid][bIntPos][2]     = cache_get_field_content_float(i, "posz");
    bIntInfo[newid][bIntPos][3]     = cache_get_field_content_float(i, "posa");
    bIntInfo[newid][bIntInterior]   = cache_get_field_content_int(i, "interior");
    bIntInfo[newid][bIntPrix]       = cache_get_field_content_int(i, "prix");
    cache_get_field_content(i, "name", bIntInfo[newid][bIntName]);
   
    printf("%d", newid);

    printf("Int ID %d - %s - %f/%f/%f/%f \n\n", newid, bIntInfo[newid][bIntName], arr4{ bIntInfo[newid][bIntPos] });
    Iter_Add(F_Interior, newid);
    nb = newid;
}
Код:
[23:07:51] 1
[23:07:51] 1
[23:07:51] Int ID 1 -  - 2324.520019/-1149.520019/1050.709960/359.268005 


[23:07:51] 2
[23:07:51] 2
[23:07:51] Int ID 2 -  - 318.558013/1114.489990/1083.880004/352.937988 


[23:07:51] 3
[23:07:51] 3
[23:07:51] Int ID 3 -  - 225.757003/1240.000000/1082.150024/0.000000 


[23:07:51] 4
[23:07:51] 4
[23:07:51] Int ID 4 -  - 1299.140014/-794.770019/1084.000000/0.000000 


[23:07:51] 5
[23:07:51] 5
[23:07:51] Int ID 5 -  - 2141.300048/-1602.560058/1505.270019/264.055999 


[23:07:51] 6
[23:07:51] 6
[23:07:51] Int ID 6 -  - 307.763000/1803.750000/-32.204101/330.209014 


[23:07:51] 7
[23:07:51] 7
[23:07:51] Int ID 7 -  - 2218.389892/-1076.300048/1050.479980/87.589202 


[23:07:51] 8
[23:07:51] 8
[23:07:51] Int ID 8 -  - 2283.070068/-1140.109985/1050.900024/357.661987 


[23:07:51] 9
[23:07:51] 9
[23:07:51] Int ID 9 -  - 2218.389892/-1076.300048/1050.479980/87.589202 


[23:07:51] 15


Thank you for your future help.
Jonas
Reply


Messages In This Thread
Problem SQL data - by Noliax8 - 02.08.2014, 21:08
Re: Problem SQL data - by DarkZeroX - 02.08.2014, 21:48
Re: Problem SQL data - by IstuntmanI - 02.08.2014, 21:54
Re: Problem SQL data - by Noliax8 - 02.08.2014, 22:01
Re: Problem SQL data - by DarkZeroX - 02.08.2014, 22:01

Forum Jump:


Users browsing this thread: 2 Guest(s)