Problem in SQLite....
#1

OK... so i have a problem again.
This code:-

Код:
new DBResult:res,str1[3];
format(query,sizeof(query),"SELECT * FROM `USERS` WHERE `Name` = '%s' AND `Password` = '%s'",DB_Escape(name),DB_Escape(hashpass));
	res = db_query(users,query);
	if(db_num_rows(res))
	{
		db_get_field_assoc(res,"Level",str1,3);
                pinfo[playerid][level] = strval(str1);
        }
It aint a problem in aompiling but it gives problem at runtime... i printed
Код:
pinfo[playerid][level]
. It just has random values in it. what is wrong? :-/
Reply


Messages In This Thread
Problem in SQLite.... - by electrux - 17.05.2013, 08:12
Re: Problem in SQLite.... - by Scrillex - 17.05.2013, 08:28
Re: Problem in SQLite.... - by electrux - 17.05.2013, 08:29
Re: Problem in SQLite.... - by Scrillex - 17.05.2013, 08:31
Re: Problem in SQLite.... - by electrux - 17.05.2013, 08:32
Re: Problem in SQLite.... - by Scrillex - 17.05.2013, 08:35
Re: Problem in SQLite.... - by electrux - 17.05.2013, 08:38
Re: Problem in SQLite.... - by Scrillex - 17.05.2013, 08:45
Re: Problem in SQLite.... - by electrux - 17.05.2013, 08:48
Re: Problem in SQLite.... - by Scrillex - 17.05.2013, 08:49

Forum Jump:


Users browsing this thread: 3 Guest(s)