30.06.2016, 21:07
I tried.
only this error i can't manage, the rest of it i've managed to fix it
Код:
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