Raised This Month: $ Target: $400
 0% 

wich is better format() or formatex() ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 05-25-2010 , 09:46   wich is better format() or formatex() ?
Reply With Quote #1

-title-
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 05-25-2010 , 09:49   Re: wich is better format() or formatex() ?
Reply With Quote #2

I'm pretty sure someone else has posted a discussion on this before.

Search for it, the topic goes in depth in which is better and why.
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 05-25-2010 , 09:59   Re: wich is better format() or formatex() ?
Reply With Quote #3

Thanks,I found them.
formatex() is better
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
jim_yang
Veteran Member
Join Date: Aug 2006
Old 05-25-2010 , 10:09   Re: wich is better format() or formatex() ?
Reply With Quote #4

no better but suitable
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-25-2010 , 10:12   Re: wich is better format() or formatex() ?
Reply With Quote #5

formatex() is faster then format() but you can't use it always in all cases : http://wiki.amxmodx.org/Optimizing_P...ting)#FormatEX
__________________
Arkshine is offline
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 05-25-2010 , 10:35   Re: wich is better format() or formatex() ?
Reply With Quote #6

I understand,I ussing it in a say message
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-25-2010 , 15:06   Re: wich is better format() or formatex() ?
Reply With Quote #7

Quote:
Originally Posted by #8 SickneSS View Post
I understand,I ussing it in a say message
It doesn't matter where you use it. It only matter what variables you are using as arguments.
__________________
fysiks is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-26-2010 , 08:54   Re: wich is better format() or formatex() ?
Reply With Quote #8

formatex()
Code:
Same as format(), except does not perform a "copy back" check.
This means formatex() is faster, but DOES NOT ALLOW this type of call:
formatex(buffer, len, "%s", buffer)
formatex(buffer, len, buffer, buffer)
formatex(buffer, len, "%s", buffer[5])
This is because the output is directly stored into "buffer", rather than copied back at the end.
__________________
Bugsy is offline
Reply



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 05:21.


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