[SQLite] Cameras not loading at their position
#2

pawn Код:
db_get_field_assoc(Result, "ID", Field, 2); ACameras[CamID][ID] = strval(Field);
            db_get_field_assoc(Result, "X", Field, 10); ACameras[CamID][CamX] = floatstr(Field);
            db_get_field_assoc(Result, "Y", Field, 10); ACameras[CamID][CamY] = floatstr(Field);
            db_get_field_assoc(Result, "Z", Field, 10); ACameras[CamID][CamZ] = floatstr(Field);
            db_get_field_assoc(Result, "ANGLE", Field, 10); ACameras[CamID][CamAngle] = floatstr(Field);
            db_get_field_assoc(Result, "SPEED", Field, 3); ACameras[CamID][CamSpeed] = strval(Field);
           
            ACameras[CamID][CamX] = X; // delete from this one to the end..
            ACameras[CamID][CamY] = Y;
            ACameras[CamID][CamZ] = Z;
            ACameras[CamID][CamAngle] = Angle;
            ACameras[CamID][CamSpeed] = MaxSpeed;
You stored them fine to ACameras array so why do you assign the values of X, Y, Z, Angle and MaxSpeed after that which are by default 0? Just remove them.
Reply


Messages In This Thread
[SQLite] Cameras not loading at their position - by Kyance - 27.06.2014, 14:51
Re: [SQLite] Cameras not loading at their position - by Konstantinos - 27.06.2014, 16:32
Re: [SQLite] Cameras not loading at their position - by Kyance - 28.06.2014, 04:22

Forum Jump:


Users browsing this thread: 1 Guest(s)