error 006: must be assigned to an array
#1

Hey, I've searched for it, and I saw a script error almost the same as mine, but it didn't work.

new aranks[5];
aranks[0] = "Temporary administrator";
aranks[1] = "Administrator";
aranks[2] = "Administrator manager";
aranks[3] = "Lead administrator";
aranks[4] = "Server owner";

This gives me the error: error 006: must be assigned to an array.

Why's this? Thanks in advance.
Reply
#2

You need a multidimensional array (Not sure whether it's called like that)

Код:
new
  aranks[5][32]= {
  //aranks[5][]= { Works too
	"Temporary administrator",
	"Administrator",
	"Administrator manager",
	"Lead administrator",
	"Server owner"
	};
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)