19.06.2011, 20:39
Quote:
Thank you guys, I will try now but what does that number mean in new string[256]; ? What does it effect and what is it, please tell me more about the String[number]
|
An array is a variable in which you can store multiple pieces of data at once and access them dynamically. An array is declared to a set size at compile time so you need to know how many pieces of data you need to store in advance, a good example of this is the very common MAX_PLAYERS array, this will have one slot for every possibly connected player, so you know data for one player will not interfere with data for another player.
And dont use 256, its way too much, and will only cause the server to lagg.
*EDIT*
Lol Ehab, didnt notice it was you (again)