about strings
#8

Quote:
Originally Posted by Vanter
Посмотреть сообщение
it's extremely risky to use one string for ALL your gamemode.
No, it's not. If you only send client messages, I declare one with size 128 and I'm fine.

I had sent a message to ****** about this few months ago and he answered me

Quote:
Originally Posted by ******
I go for method 1 all the time, simply because then there's no chance of subtle bugs. However, if you do go for method 2 make sure you name it something like "gString" instead of just "string" to make it clear that it's a global variable. There is also method 3 which uses "static" locals instead. They all have advantages and disadvantages.
The first method was to declare a string locally, the second way was globally.
Reply


Messages In This Thread
about strings - by avivelkayam - 24.08.2013, 15:04
Re: about strings - by Vanter - 24.08.2013, 15:27
Re: about strings - by avivelkayam - 24.08.2013, 16:44
Re: about strings - by Vanter - 24.08.2013, 18:53
Re: about strings - by avivelkayam - 24.08.2013, 19:20
Re: about strings - by Vince - 24.08.2013, 19:35
Re: about strings - by Vanter - 24.08.2013, 19:38
Re: about strings - by Konstantinos - 24.08.2013, 19:43
Re: about strings - by avivelkayam - 24.08.2013, 20:02
Re: about strings - by Konstantinos - 24.08.2013, 20:06

Forum Jump:


Users browsing this thread: 3 Guest(s)