View Single Post
dubbeh
Senior Member
Join Date: Jul 2007
Old 08-17-2017 , 21:56   Re: [ANY] SteamWorks
Reply With Quote #611

The error logs didn't return any type of problems from what I was told - I'll double check tomorrow.

Just fixed the Plugin_Handled on the command callback, was an overlook on my part and same with forgetting to use the macro .

Quote:
You're raw printing strings and double formatting strings, MOTDFLogMessage(szJSONResMsg); is a disaster.
Do you mean to strlen then print to avoid possible buffer overflows? Doing it this way to check if logging is enabled inside MOTDFLogMessage (Saves code clutter checking if logging is enabled). I also thought that SMJansson already had them checks with defining data types.

https://github.com/dubbeh/motd-fixer...tdf/helpers.sp - Can see them functions here.

Basically just passes over the buffers to fill from the JSON response data for ease of use

Thanks Kyle
__________________
SM Plugins - dubbeh.net - Plugin requests are welcome
dubbeh is offline