Query problem
#1

Hey guys i did a command to show me the querys but i get this error

Код HTML:
[ERROR] mysql_unprocessed_queries - invalid connection handle (id: 0)
Код HTML:
CMD:test(playerid)
{
	foreach(new i : Player)
    {
		new msg[60];
		format(msg, sizeof(msg), "Ticks: %d | Queryes: %d", GetServerTickRate(), mysql_unprocessed_queries(i));
	    SCM(playerid, -1, msg);
	}    
	return 1;
}
what could be the problem ? , and the ticks: are 190 - 200 is that ok ? cause i started a grandlarc gamemode and i had the same ticks: should be ok ?
Reply
#2

Uh, that doesn't make sense. You're passing a playerid where you should be passing a connection handle ...
Also, uhm, use SendClientMessageToAll?
Reply
#3

Quote:
Originally Posted by Vince
Посмотреть сообщение
Uh, that doesn't make sense. You're passing a playerid where you should be passing a connection handle ...
Also, uhm, use SendClientMessageToAll?
so what should i put instead of (i) ?
Reply
#4

The connection handle? You know ...
PHP код:
connectionHandle mysql_connect(...); 
Reply
#5

Quote:
Originally Posted by Vince
Посмотреть сообщение
The connection handle? You know ...
PHP код:
connectionHandle mysql_connect(...); 
ok, thx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)