kick() function doesn't work in callback, stock, etc
#4

Quote:
Originally Posted by ReVo_
Посмотреть сообщение
if you use Kick in OnPlayerConnect this could happen, use a timer or OnPlayerRequestClass (?)
would be boring, the code actually does this:
pawn Код:
public OnPlayerConnect(playerid)
{
    //select status from contas where nickname = Falcon
    //  /\ return the value em Result(playerid);
    return 1;
}

Result(playerid)
{
    //if (status == 1) -> kick
    Kick(playerid);
    return 0x01;
}
but the player aren't kicked.



chatlog.txt
Код:
[17:00:40] {FFFFFF}SA-MP {B9B9BF}0.3e {FFFFFF}Started

[17:00:43] Connecting to 127.0.0.1:7777...

[17:00:44] Connected. Joining the game...

[17:00:59] Lost connection to the server. Reconnecting..

[17:00:59] The server is restarting..

[17:00:59] Connecting to 127.0.0.1:7777...

[17:00:59] Connected. Joining the game...

[17:01:11] Lost connection to the server. Reconnecting..

[17:01:11] The server is restarting..

[17:01:11] Connecting to 127.0.0.1:7777...

[17:01:21] The server didn't respond. Retrying..

[17:01:21] Connecting to 127.0.0.1:7777...

[17:01:21] You are banned from this server.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)