Raised This Month: $ Target: $400
 0% 

Solved need help in optimization [weird coding]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
kww
Senior Member
Join Date: Feb 2021
Location: Russia
Old 01-20-2022 , 16:22   Re: need help in optimization [weird coding]
Reply With Quote #7

Quote:
Originally Posted by OciXCrom View Post
Code:
case NAME_ONLY: {     new szName[MAX_NAME_LENGTH]     get_user_name(iSender, szName, charsmax(szName))     formatex(szTemp, charsmax(szTemp), "%s ", szName) }

=>

Code:
case NAME_ONLY: {     get_user_name(iSender, szTemp, charsmax(szTemp)) }
In this case i need that space after name

Quote:
Originally Posted by OciXCrom View Post
If you're using AMXX 1.9 or 1.10, you don't even need to use get_user_name():

Code:
formatex(szTemp, charsmax(szTemp), "%n (ID: %i) ", iSender, iSender)
At what moment we got this feature?
__________________
Now working on: Side Weapons (Very lazy, tbh)
Avatar source: https://bit.ly/3BAk19g
Discord: kww#9951
kww is offline
 



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 11:35.


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