20.02.2012, 13:18
By my experience, one does not have to free the result if there was no result stored in the first place (empty result set).
|
By my experience, one does not have to free the result if there was no result stored in the first place (empty result set).
|
|
Check if you're passing the right connection parameter to mysql_free_result(). Commands get out of synchronization if you have forgotten to free a result.
Codes like this are a source of problems as well, if there are 0 rows! pawn Код:
|
|
Thanks Pooh7.
Kick in OnQueryFinish don't work? because I use and when I test and connects in the server I see the server restarting or lost connection ( but the server run) In the log there is 1 and 2. I'm kick because in the log "Neo has left the server" but don't have "server close the connection" or my clientmessage. Код:
switch(resultid)
{
case THREAD_BAN:
{
mysql_store_result(SQL1);
if(IsPlayerConnected(extraid))
{
if(mysql_retrieve_row(SQL1))
{
...
if()
{
...
print("1");
Kick(extraid);
print("2");
mysql_free_result(SQL1);
return 1;
}
}
}
mysql_free_result(SQL1);
}
}
|
|
pooh7 I use only threaded query.
In onplayerconnect if I use kick without return 1 = lost connection but if I use return 1 = close connection. But if I call OnQueryFinish in onplayerconnect and I kick the player in OnQueryFinish with or without return = lost connection + I don't see the sendclientmessage. You use kick in OnQueryFinish (call other that onplayerconnect) for to works fine no? EDIT: I use a timer and it's ok. |
|
Originally Posted by krisk @ ls-rp.com
Kick() and Ban() packets has high network priority while normal message packets has not, this will in many cases make the server kick you before you get a message about why. Meaning that if your name isn't registered it might kick you without telling you why.
|
C:\Users\BooNii3\Scripts\Project Avaition 0.3d\gamemodes\projectaviation.pwn(2971) : error 017: undefined symbol "mysql_query"
|
My script wont compile, i've added the new include and dll file.
Код:
C:\Users\BooNii3\Scripts\Project Avaition 0.3d\gamemodes\projectaviation.pwn(2971) : error 017: undefined symbol "mysql_query" |
#define mysql_query_callback(%1,%2,%3,%4,%5) \
mysql_function_query(%5, %2, false, %3, "siii", %2, %1, %4, %5)
#define mysql_query(%1,%2,%3,%4) \
mysql_function_query(%4, %1, false, "OnQueryFinish", "siii", %1, %2, %3, %4)