|
hi all.. here's my problem.. i'm creating an encyclopedia for preschoolers on object around us. i have the SQLite database and UNITY to run it. but some how i cant get it to work. i edited the code from here http://www.unifycommunity.com/wiki/index.php?title=SQLite. and here's my code : this code is for the GUI functions. public var DatabaseName : String; public var TableName : String ; var db : dataRetrieve; function Start(){ } var search: String = ""; var DatabaseEntryStringWidth = 100; var scrollPosition : Vector2; var databaseData : ArrayList = new ArrayList(); function OnGUI(){ GUI.Box(Rect (25,25,Screen.width - 50, Screen.height - 50),""); GUILayout.BeginArea(Rect(50, 50, Screen.width - 100, Screen.height - 100)); } function SearchResult(){ return db.SearchResult(TableName); } here's the second code to read from the data. import Mono.Data.Sqlite; class dbRetrieve{ query = "SELECT * FROM " + tableName + " WHERE " + Search + "LIKE" + "'" + a + "%';" ; } after compiling these scripts, an error stated that "GUI Error: You are pushing more GUIClips than you are popping." and i'm not sure what it is. please help.
(comments are locked)
|
|
In this code snippet of yours: There's an unbalanced number of at the part where u commented , i removed the call.. but still i get the same error. and i did the same when i end the call like u said. well still the same error occurred. and my GUI's are misplaced. well have to do some more checking.. thanks anyway.. appreciate it.
Mar 19 '12 at 06:41 AM
zerox911
(comments are locked)
|
