07.10.2016, 22:17
I wanted to create the command [/x], and now I have errors.
This is the screenshot with the errors:http://imgur.com/a/mSR9B
This is the code:
Can you help me please?
This is the screenshot with the errors:http://imgur.com/a/mSR9B
This is the code:
Код:
CMD:x(playerid, params[]) { new id, message[128], szMessage[256],sendername[25]]; if(sscanf(params, "s[128]", message)) return SCM(playerid, COLOR_GREY, "/x [text]"); { if(PlayerInfo[playerid][pAdmin] >= 1) { id = PlayerInfo[playerid][pReportAccepted]; if(id >= 0) { format(szMessage, 256, "(/x) Admin %s: %s", GetName(playerid), message); SCM(id, COLOR_RED2, sMessage); SCM(playerid, COLOR_RED2, sMessage); } } else { new id2 = PlayerInfo[playerid][pReportAccepted2]; if(id2 >= 0) { format(szMessage, 256, "(/x) Player %s: %s", GetName(playerid), message); SCM(id2, COLOR_RED2, sMessage); SCM(playerid, COLOR_RED2, sMessage); } } } return 1; }