01.01.2015, 18:53
I have no idea what SQL_PrepareUpdate returns as it's clearly a custom written function so show that, and if you must check for valid handles, if that's what index represents, do the check like this:
Why could it be NULL is either the database file doesn't exist, query has an error, or the user couldn't be found in the table and others...
pawn Код:
if (DB:index > 0)