: error 047: array sizes do not match, or destination array is too small
#5

Quote:
Originally Posted by Swankeh
Посмотреть сообщение
No haha, same as I did before in my beginnings, are things that happens to the new ones there are many errors and warnings that when I leave and I know what I have to do to solve them. Anything I can help you with pleasure
you have to use format.
format(string, sizeof string, "{1D5857}Secret Admin");

Use this, no problem.
Код:
new AdminLevelArray[8][64] = {
	{"None"},{"{1D5857}Secret Admin"},{"{FFFF00}Junior Admin"},{"{26D607}General Admin"},{"{F9DE84}Senior Admin"},{"{F87627}Head Admin"},{"{C50574}Assistant Management"},{"{EE39CE}Management"}
};

GetAdminRank(playerid) return AdminLevelArray[PlayerInfo[playerid][pAdmin]];
// If GetAdminRank(playerid) gives some stupid return message, replace the function with this:
GetAdminRank(playerid) {
	new tempReturn[64];
	format(tempReturn,64,"%s",AdminLevelArray[PlayerInfo[playerid][pAdmin]]);
	return tempReturn;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)