MySQL don't work sometimes
#1

Hey there, I'm really confused, what is going on in my script.
I'm using "easy-to-use" StrickenKid's mysql plugin.

The problem is, that my sql query isn't returning sometimes what it should return. For instance:



It has to return player nickname and sometimes it returns database name realnyzivot_server as you can see here:



I'm sure it isn't caused by plugin, because it did even before plugin update (change)

My function looks like this:
Код:
new query[150],data[512];
format(query,sizeof(query),"SELECT %s FROM %s WHERE %s LIMIT 1",value,table,podminka);
mysql_query(query);
mysql_store_result();
if(mysql_num_rows() == 0){
    format(data,sizeof(data),"");
} else {
    mysql_fetch_field(value,data);
}
mysql_free_result();
return data;
I ran out of ideas.
Reply


Messages In This Thread
MySQL don't work sometimes - by ]mxco[ - 25.08.2015, 17:44
Re: MySQL don't work sometimes - by CrazyChoco - 25.08.2015, 20:06
Re: MySQL don't work sometimes - by ]mxco[ - 26.08.2015, 12:11
Re: MySQL don't work sometimes - by CrazyChoco - 26.08.2015, 21:45

Forum Jump:


Users browsing this thread: 5 Guest(s)