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

Hello,

I thought it was something with my script, but i compile new.pwn and resulted in same.

when kick(playerid) is called, the server restart (like gmx), but only for me.


compiled code:
pawn Код:
#include <a_samp>

main()
{
    print("SA-MP Forums");
}

public OnPlayerConnect(playerid)
{
    Falcon(playerid);
    return 1;
}

Falcon(playerid)
{
    Kick(playerid);
    return 0x01;
}

server_log.txt show this:
Код:
----------------------------------
[17:00:09]  Blank Gamemode by your name here
[17:00:09] ----------------------------------

[17:00:09] Number of vehicle models: 0
[17:00:43] Incoming connection: 127.0.0.1:55154
[17:00:44] [join] Falcon has joined the server (0:127.0.0.1)
[17:00:44] [part] Falcon has left the server (0:2)
[17:00:59] Incoming connection: 127.0.0.1:55155
[17:00:59] [join] Falcon has joined the server (0:127.0.0.1)
[17:00:59] [part] Falcon has left the server (0:2)
[17:01:11] Incoming connection: 127.0.0.1:55156
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)