[C++] [0] [1] [2]

ejexter

Well-known member
Joined
Feb 21, 2014
Messages
211
Reaction score
0
How to make like this:
sAdmin[0] = "[FNS]Mikky";
sAdmin[1] = "[xNoX]MorYz";
sAdmin[2] = "[nSP]XaN";
sAdmin[3] = "Duel[Su]per";
... 
:looky:
 

0x_

Wtf I'm not new....
Staff member
Administrator
Joined
Feb 18, 2013
Messages
1,123
Reaction score
177
You can't just assign a "string" to an char array, that's not how it works.
I recommend you to learn the basics of C/C++ before you even try some things like this, because you ask the most basic things.

anyways:
Code:
char names[][24] = {
	{"Name1"},
	{"Name2"}
	// ..etc
};
 
Top