[Snippet]Efficient command
#8

Quote:
Originally Posted by yezizhu
Код:
//edit:1
if(strcmp("/bla",cmdtext) == 0)
A bit slower than
Код:
//edit:2
if(!strcmp("/bla",cmdtext))
A bit slower than
Код:
edit:3
if(!strcmp("bla",cmdtext[1]))
Does anyone can use edit:3 to make command?
I think
Код:
if(!strcmp("bla",cmdtext[1]))
will be faster as
Код:
if(!strcmp("/bla",cmdtext))
but I don't think
Код:
if(!strcmp("/bla",cmdtext))
is faster then
Код:
if(strcmp("/bla",cmdtext) == 0)
Reply


Messages In This Thread
[Snippet]Efficient command - by yezizhu - 27.07.2009, 03:13
Re: [Snippet]Command - by [DD]FlameOFDeath - 27.07.2009, 03:23
Re: [Snippet]Command - by yezizhu - 27.07.2009, 03:27
Re: [Snippet]Command - by [DD]FlameOFDeath - 27.07.2009, 03:29
Re: [Snippet]Command - by yezizhu - 27.07.2009, 03:36
Re: [Snippet]Command - by [DD]FlameOFDeath - 27.07.2009, 03:38
Re: [Snippet]Command - by yezizhu - 27.07.2009, 12:13
Re: [Snippet]Command - by ғαιιοцт - 04.08.2009, 14:27
Re: [Snippet]Command - by yezizhu - 04.08.2009, 16:21
Re: [Snippet]Command - by ғαιιοцт - 04.08.2009, 16:22

Forum Jump:


Users browsing this thread: 6 Guest(s)