10.12.2012, 18:04
player is not kicked:
works well:
server_log.txt:
[17:21:04] Incoming connection: 127.0.0.1:53258
[17:21:04] [join] Falcon has joined the server (0:127.0.0.1)
[17:21:04] [part] Falcon has left the server (0:2)
[17:21:15] Incoming connection: 127.0.0.1:53259
[17:21:15] [join] Falcon has joined the server (0:127.0.0.1)
[17:21:15] [part] Falcon has left the server (0:2)
[17:21:30] Incoming connection: 127.0.0.1:64866
[17:21:30] [join] Falcon has joined the server (0:127.0.0.1)
[17:21:30] [part] Falcon has left the server (0:2)
[17:21:45] Incoming connection: 127.0.0.1:64867
[17:21:46] [join] Falcon has joined the server (0:127.0.0.1)
[17:21:46] [part] Falcon has left the server (0:2)
chatlog.txt:
i really don't understand this
pawn Код:
#define threadMySQL::%0(%1) forward %0(%1); \
public %0(%1)
public OnPlayerConnect(playerid)
{
GetPlayerName(playerid, nome[0], 21);
format(queryformat, 103, "select contaid, statusconta, linguagem, senhaacesso from contas where nickname='%s'", nome[0]);
mysql_function_query(connectionhandle, queryformat, true, "sql_onplayerconnect", "i", playerid);
return 1;
}
threadMySQL::sql_onplayerconnect(playerid)
{
SendClientMessage(playerid, 0xFFFF80AA, "republicadventure-server.com");
Kick(playerid);
return 0x01;
}
pawn Код:
public OnPlayerConnect(playerid)
{
Kick(playerid);
GetPlayerNa...
format(que...
server_log.txt:
[17:21:04] Incoming connection: 127.0.0.1:53258
[17:21:04] [join] Falcon has joined the server (0:127.0.0.1)
[17:21:04] [part] Falcon has left the server (0:2)
[17:21:15] Incoming connection: 127.0.0.1:53259
[17:21:15] [join] Falcon has joined the server (0:127.0.0.1)
[17:21:15] [part] Falcon has left the server (0:2)
[17:21:30] Incoming connection: 127.0.0.1:64866
[17:21:30] [join] Falcon has joined the server (0:127.0.0.1)
[17:21:30] [part] Falcon has left the server (0:2)
[17:21:45] Incoming connection: 127.0.0.1:64867
[17:21:46] [join] Falcon has joined the server (0:127.0.0.1)
[17:21:46] [part] Falcon has left the server (0:2)
chatlog.txt:
Код:
[17:21:01] {FFFFFF}SA-MP {B9B9BF}0.3e {FFFFFF}Started [17:21:04] Connecting to 127.0.0.1:7777... [17:21:04] Connected. Joining the game... [17:21:04] Audio stream: http://localhost/intro_login.mp3 [17:21:04] Connected to {B9B9BF}..:: Republic Adventure server ::.. [17:21:14] Lost connection to the server. Reconnecting.. [17:21:14] The server is restarting.. [17:21:15] Connecting to 127.0.0.1:7777... [17:21:15] Connected. Joining the game... [17:21:15] Audio stream: http://localhost/intro_login.mp3 [17:21:15] Connected to {B9B9BF}..:: Republic Adventure server ::.. [17:21:30] Lost connection to the server. Reconnecting.. [17:21:30] The server is restarting.. [17:21:30] Connecting to 127.0.0.1:7777... [17:21:30] Connected. Joining the game... [17:21:30] Audio stream: http://localhost/intro_login.mp3 [17:21:30] Connected to {B9B9BF}..:: Republic Adventure server ::.. [17:21:45] Lost connection to the server. Reconnecting.. [17:21:45] The server is restarting.. [17:21:45] Connecting to 127.0.0.1:7777... [17:21:46] Connected. Joining the game... [17:21:46] Audio stream: http://localhost/intro_login.mp3 [17:21:46] Connected to {B9B9BF}..:: Republic Adventure server ::.. [17:21:46] republicadventure-server.com [17:21:46] Server closed the connection.