Business key doesnt load. -MYSQL +1
#4

Quote:
Originally Posted by Misiur
Посмотреть сообщение
Default MySQL handle is 1, 0 means connection isn't set. Better yet, keep the mysql_connect handle in a global variable.

pawn Код:
PlayerInfo[playerid][pBizKey] = cache_get_field_content_int(1, "bizkey", query);
pawn Код:
//To make things better:
new gDbhandle;
//(...)
gDbhandle = mysql_connect(...);
//(...)
PlayerInfo[playerid][pBizKey] = cache_get_field_content_int(gDbhandle, "bizkey", query);
cache does not work by dbhandle, there's no need since the data from the last dbhandle is stored there. 0 Is the number of the row.

@OP: Show us the query used to select the data.
Reply


Messages In This Thread
Business key doesnt load. -MYSQL +1 - by HK - 27.02.2014, 17:05
Re: Business key doesnt load. -MYSQL +1 - by venomlivno8 - 27.02.2014, 17:07
Re: Business key doesnt load. -MYSQL +1 - by Misiur - 27.02.2014, 17:10
Respuesta: Re: Business key doesnt load. -MYSQL +1 - by CuervO - 27.02.2014, 17:15
Re: Business key doesnt load. -MYSQL +1 - by HK - 27.02.2014, 17:23
Respuesta: Business key doesnt load. -MYSQL +1 - by CuervO - 27.02.2014, 17:25
Re: Business key doesnt load. -MYSQL +1 - by HK - 27.02.2014, 17:29
Re: Business key doesnt load. -MYSQL +1 - by Misiur - 27.02.2014, 17:43
Re: Business key doesnt load. -MYSQL +1 - by HK - 27.02.2014, 17:52
Re: Business key doesnt load. -MYSQL +1 - by Misiur - 27.02.2014, 17:58

Forum Jump:


Users browsing this thread: 1 Guest(s)