Server quits with I type an rcon command
#1

Hello,

How come that sometimes, when I type a custom rcon command on my server, the server just quits?

Filterscript:

Код:
public OnRconCommand(cmd[])
{
    return 0;
}
I use this because without it, OnRconCommand in the gamemode won't be called.
(https://sampwiki.blast.hk/wiki/OnRconCommand)

Gamemode:

Код:
public OnRconCommand(cmd[])
{
        new command[128]/*, tmp[128], String[128]*/, idx;
	command = strtok(cmd, idx);

	if(!strcmp(command, "limits", true))
	{
		printf("Streamed objects:\t%i", F_CountObjects());
		printf("Non-streamed objects:\t%i", DEBUG_ObjectsUsed);
		printf("Textdraws:\t\t%i", DEBUG_TextDrawsUsed);
		printf("3DTexts:\t\t%i", DEBUG_3DTextsUsed);
		printf("Gangzones:\t\t%i", DEBUG_GangZonesUsed);
		printf("Map icons:\t\t%i", DEBUG_MapIconsUsed);
		printf("Vehicles:\t\t%i", DEBUG_VehiclesUsed);
		printf("Pickups:\t\t%i", DEBUG_PickupsUsed);
		printf("Repeating timers:\t%i", DEBUG_RepeatingTimersUsed);
	}
        return 1;
}
Reply
#2

https://sampwiki.blast.hk/wiki/OnRconCommand Read the Important note
Reply
#3

yes? what about it?

Oh, and it also doesn't always quit. It just happens sometimes.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)