[Tutorial] Making New Chat
#8

Quote:
Originally Posted by Toreno
Посмотреть сообщение
Yes, it is. How does a stock which returns the player his name is not better than writing it each time when you have this stock using one variable of MAX_PLAYER_NAME. Better and faster, it has nothing to do with lazy... it's just better.

By the way, this tutorial is nice but you could have explained better since newbies will always get this wrong.
Thank you.
No it's not better as it has no speed difference. It is not faster at all, in fact calling a stock each time might be slower, but I've never tried it.

It's just shorter, storing player name into a variable on connect is the best and the most efficient.
Reply


Messages In This Thread
Making New Chat - by Amel_PAtomAXx - 09.08.2011, 02:03
Re: Making New Chat - by Jack- - 09.08.2011, 03:37
Re: Making New Chat - by ylleron - 09.08.2011, 08:05
Re: Making New Chat - by Jack- - 09.08.2011, 15:33
Re: Making New Chat - by Mean - 09.08.2011, 15:38
Re: Making New Chat - by Amel_PAtomAXx - 09.08.2011, 21:52
Re: Making New Chat - by Toreno - 09.08.2011, 22:01
Re: Making New Chat - by Mean - 10.08.2011, 01:05
Re: Making New Chat - by [HiC]TheKiller - 10.08.2011, 04:47
Re: Making New Chat - by Mean - 10.08.2011, 12:14

Forum Jump:


Users browsing this thread: 1 Guest(s)