/admins
#1

How do i make this command
Reply
#2

Code:
if (strcmp(command, "/admins", true) == 0)
	{
		SendClientMessage(playerid,COLOR_ADM,"The Admin List");
		format(string,sizeof(string),"(ADMIN LEVEL NAME):");
		for(new i = 0; i < SLOTS; i++)
		{
			if(AccountInfo[i][aAdmin] == 1)
			{
			  format(string,sizeof(string),"%s %s,",string,PlayerName(i,false));
			}
		}
		SendClientMessage(playerid,COLOR_WHITE,string);
		format(string,sizeof(string),"(ADMIN LEVEL NAME):");
		for(new i = 0; i < SLOTS; i++)
		{
			if(AccountInfo[i][aAdmin] == 2)
			{
			  format(string,sizeof(string),"%s %s,",string,PlayerName(i,false));
			}
		}
		SendClientMessage(playerid,COLOR_WHITE,string);
		format(string,sizeof(string),"(ADMIN LEVEL NAME:)");
		for(new i = 0; i < SLOTS; i++)
		{
			if(AccountInfo[i][aAdmin] == 3)
			{
			  format(string,sizeof(string),"%s %s,",string,PlayerName(i,false));
			}
		}
		SendClientMessage(playerid,COLOR_WHITE,string);
		format(string,sizeof(string),"(ADMIN LEVEL NAME;");
		for(new i = 0; i < SLOTS; i++)
		{
			if(AccountInfo[i][aAdmin] == 4)
			{
			  format(string,sizeof(string),"%s %s,",string,PlayerName(i,false));
			}
		}
		SendClientMessage(playerid,COLOR_WHITE,string);
	  return 1;
	}
Reply
#3

thanks, also, i get an error "Array must be indexed "score" "
score = GetPlayerScore(otherid);

what should i do to fix it?
Reply
#4

new score = GetPlayerScore(otherid);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)