08.06.2012, 14:54
(
Последний раз редактировалось Firzendxiw; 08.06.2012 в 16:33.
)
Well for the last 2 hours it seems i've been hitting my head against a brick wall. I just can't seem to get the table to store the data.
I check the values with printf(...) #DEBUGGING# and they show up correct. After everything is supposibly loaded into the Database, I check the Database using a SQLite Browser.
The first table I created stores the data fine, but when it comes to the table I'm trying to store the data in. It just shows the columns with nothing entered.
Here is the SQLite code, I just can't workout where it's going wrong...(Gonna be annoying if its something simple )
Hopefully what I'm asking made sense to you all.
I check the values with printf(...) #DEBUGGING# and they show up correct. After everything is supposibly loaded into the Database, I check the Database using a SQLite Browser.
The first table I created stores the data fine, but when it comes to the table I'm trying to store the data in. It just shows the columns with nothing entered.
Here is the SQLite code, I just can't workout where it's going wrong...(Gonna be annoying if its something simple )
pawn Код:
format(Query, sizeof(Query), "INSERT INTO `%d` (`itemid`,`entityid`,`modelid`,`x`,`y`,`z`,`rx`,`ry`,`rz`,`angle`,`colour1`,`colour2`) VALUES('Object','%d','%d','%f','%f','%f','%f','%f','%f','0','0','0')",id,count,modelid,x,y,z,rx,ry,rz);
Result = db_query(MapDatabase, Query);
db_free_result(Result);