View Single Post
Th3822
Member
Join Date: Jan 2013
Location: Venezuela
Old 04-26-2020 , 17:00   Re: Weird error/crash after using server_cmd("stats") and server_exec() on a clcmd
Reply With Quote #7

Quote:
Originally Posted by KliPPy View Post
I may be talking out of my arse, but it may be related to the fact that you are telling the engine to execute the command buffer immediately while it's processing a client command already.
Do you have to execute the command immediately? If not, try postponing it a single frame by using RequestFrame.
unfortunately, yes.

I've a plugin that it's like server_cmd(), but it returns the command output as a string by using condebug, made as an alternative of hooking Con_Printf with orpheu (that doesn't crash when it's second arg is not an string)

the plugin it's done and i was about to post it (it was meant to be an stock, but i had to make it a plugin with api after noticing some issues)

this issue was one of the delays for it, i even tested cvarlist and "maps *" and no issue with them...
Th3822 is offline