15.07.2011, 23:13
I have encountered a situation when I needed a "MAX_PLAYERS" string with a length of about 500 characters.
Normally I'd never even create more than a single per player string but no matter how I do this, in the end I find myself needing such a string. I thought of simply storing the text in files (file for each player) and access the files instead of accessing any variables, but it's really really slow when I will do this multiple times for different players at once.
There's another way I thought of which would be PVars, I don't really get their memory usage, also they seem really comfortable as they don't increase the amx size at all.
Anyway, how should I create a per-player ~500 character string?
Thanks.
Normally I'd never even create more than a single per player string but no matter how I do this, in the end I find myself needing such a string. I thought of simply storing the text in files (file for each player) and access the files instead of accessing any variables, but it's really really slow when I will do this multiple times for different players at once.
There's another way I thought of which would be PVars, I don't really get their memory usage, also they seem really comfortable as they don't increase the amx size at all.
Anyway, how should I create a per-player ~500 character string?
Thanks.