View Single Post
lokizito
Veteran Member
Join Date: Dec 2010
Location: Brazil
Old 06-23-2011 , 16:00   Re: Strange SQLite error
Reply With Quote #3

Wrong typing. You should always test the query somewhere before using in SM since than you can be sure of the problem. Also, don't bump.
Code:
 len += Format(query[len], sizeof(query)-len, " (`STEAMID` TEXT, `ITEMID` INTIGER, `AMOUNT` INTEGER");
should be
Code:
 len += Format(query[len], sizeof(query)-len, " (`STEAMID` TEXT, `ITEMID` INTEGER, `AMOUNT` INTEGER");
And one tip: use SQL_TQuery since with it you can log the error:
Callback
Code:
SQLTCallback public(Handle:owner, Handle:hndl, const String:error[], any:data);
__________________
[CS:S] RankMe - Why pay for a rank plugin if you can have one for free?
[CS:S] RankMe Connect Announcer - Announce when a player connect
Translation Project - Let's make the plugins to be international
lokizito is offline