server-beta icon indicating copy to clipboard operation
server-beta copied to clipboard

Extend return values for some natives

Open NexiusTailer opened this issue 1 year ago • 0 comments

There are some natives which always return 1/true, but they could have some arguments validity checks and start to return 0/false as well to indicate it did not execute with success. Those natives are:

  • SendRconCommand/SendRconCommandf can check if the passed string is empty to return failure (just like it was made with GameTextForAll, for example)
  • UnBlockIpAddress can also check if ip_address string is empty (just like BlockIpAddress do it now)
  • SetGameModeText can return failure if the passed string is empty. Now it returns success, but gamemode text doesn't change and stays the previous set

NexiusTailer avatar Aug 08 '24 13:08 NexiusTailer