Server quits with I type an rcon command - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Server quits with I type an rcon command (
/showthread.php?tid=316290)
Server quits with I type an rcon command -
ғαιιοцт - 06.02.2012
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;
}
Re: Server quits with I type an rcon command -
Dark_Kostas - 06.02.2012
https://sampwiki.blast.hk/wiki/OnRconCommand Read the Important note
Re: Server quits with I type an rcon command -
ғαιιοцт - 06.02.2012
yes? what about it?
Oh, and it also doesn't always quit. It just happens sometimes.