26.12.2011, 15:32
PHP код:
CMD:adduty(playerid, params[])
{
new string[256];
new AdminName[28];
GetPlayerName(playerid, AdminName, sizeof(AdminName));
format(string, sizeof(string), "Administrator %s is now on duty. (/report for assistance).", AdminName;
if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid, COLOR_GREY,"You are not authorized to use that command.");
else
{
{
SetPlayerColor(playerid, COLOR_BLACK);
SetPlayerHealth(playerid, 99999);
SetPlayerArmour(playerid, 99999);
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "You are now administrator On duty .");
SendClientMessageToAll(COLOR_YELLOW, string);
}
}
}
return 1;
}
and I get the error, "Excepted token "," but found ";"