Command of adminjail
#6

I tried.

Код:
CMD:aduty(playerid, params[])
{

	if (pInfo[playerid][pAdminLevel] < 1)
	    return SendClientMessage(playerid, "You are not Admin.");

	if (!pInfo[playerid][pAdminDuty])
	{
		SetPlayerColor(playerid,COLOR_RED);

		pInfo[playerid][pAdminDuty] = 1;
		new string[128]
		format(string, sizeof(string), "COLOR_RED" "%s is now Admin Duty. Use (/report) to ask help",GetPlayerName(playerid, 0));
			SendClientMessageToAll(-1,string);
	}
	else
	{
	    SetPlayerColor(playerid, COLOR_WHITE);

		pInfo[playerid][pAdminDuty] = 0;
		SendClientMessage(playerid,COLOR_GREEN, "You are no longer on admin duty.");
	}
	return 1;
}


Код:
error 001: expected token: ";", but found "-identifier-"
error 035: argument type mismatch (argument 2)


format(string, sizeof(string), "COLOR_RED" "%s is now Admin Duty. Use (/report) to ask help",GetPlayerName(playerid, 0));

only this error i can't manage, the rest of it i've managed to fix it
Reply


Messages In This Thread
Command of adminjail - by Zeus666 - 30.06.2016, 20:42
Re: Command of adminjail - by Stinged - 30.06.2016, 20:47
Re: Command of adminjail - by Zeus666 - 30.06.2016, 20:53
Re: Command of adminjail - by Shinja - 30.06.2016, 21:00
Re: Command of adminjail - by Stinged - 30.06.2016, 21:05
Re: Command of adminjail - by Zeus666 - 30.06.2016, 21:07
Re: Command of adminjail - by Stinged - 30.06.2016, 21:19
Re: Command of adminjail - by Zeus666 - 30.06.2016, 21:25
Re: Command of adminjail - by Stinged - 30.06.2016, 21:26
Re: Command of adminjail - by Zeus666 - 30.06.2016, 21:27

Forum Jump:


Users browsing this thread: 2 Guest(s)