17.05.2013, 08:12
OK... so i have a problem again.
This code:-
It aint a problem in aompiling but it gives problem at runtime... i printed
. It just has random values in it. what is wrong? :-/
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); }
Код:
pinfo[playerid][level]