Raised This Month: $ Target: $400
 0% 

Menu.AddItem Formatting


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 09-24-2018 , 19:44   Re: Menu.AddItem Formatting
Reply With Quote #9

Quote:
Originally Posted by Spirit_12 View Post
I'm with Crasher_3637 on this one. Why create a whole new function when Format can easily solve the issue?
You say you're with him, but then you immediately disagree with him? He claimed that the snippet in the OP was a good alternative to a Format call.

Format-class functions exist across Sourcemod. From the various PrintTo*() functions, KickClient, ServerCommand, ClientCommand, ShowActivity, BuildPath, the logging functions, etc are all examples of this. We combine the formatting into the function for convenience.

There is an ongoing discussion in the Sourcemod Discord/IRC server about this, and the potential issues.
__________________

Last edited by ddhoward; 09-24-2018 at 19:45.
ddhoward is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:23.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode