2 cmds with reason/text = "я"
#1

Код:
CCMD:ask(playerid, params[])
{
    new msg[100]; new string[200];
    if(sscanf(params, "us[100]", msg))return SendClientMessage(playerid, COLOR_GREY, "{6a696a}[cmd]: /ask {9c9a9c}<questions>");
    format(string, sizeof(string), "{C4BC34}[ASK] {EDE679}%s(%d): %s", GetName(playerid), playerid, msg);
    SendAdminMessage(COLOR_SERVER, string);
    SendClientMessage(playerid, COLOR_SERVER, "{C4BC34}Your question has been sent to all online administrators.");
    return 1;
}
Код:
CMD:a(playerid, params[])
{
    new msg[100];
    new string[200];
	if(pInfo[playerid][Adminlevel] < 1) return SendClientMessage(playerid, COLOR_RED, "{ff6347}Error: You are not allowed to use this command!");
    if(sscanf(params, "us[100]", msg))return SendClientMessage(playerid, COLOR_GREY, "{6a696a}[cmd]: /a {9c9a9c}[message]");
    format(string, sizeof string, "{FF0000}[Admin Chat] {FF6347}%s: %s", GetName(playerid), msg);
    SendAdminMessage(COLOR_RED, string);
    return 1;
}
Reply
#2

Код:
CCMD:ask(playerid, params[])
{
    new msg[100]; new string[200];
    if(sscanf(params, "s[100]", msg))return SendClientMessage(playerid, COLOR_GREY, "{6a696a}[cmd]: /ask {9c9a9c}<questions>");
    format(string, sizeof(string), "{C4BC34}[ASK] {EDE679}%s(%d): %s", GetName(playerid), playerid, msg);
    SendAdminMessage(COLOR_SERVER, string);
    SendClientMessage(playerid, COLOR_SERVER, "{C4BC34}Your question has been sent to all online administrators.");
    return 1;
}

CMD:a(playerid, params[])
{
    new msg[100];
    new string[200];
	if(pInfo[playerid][Adminlevel] < 1) return SendClientMessage(playerid, COLOR_RED, "{ff6347}Error: You are not allowed to use this command!");
    if(sscanf(params, "s[100]", msg))return SendClientMessage(playerid, COLOR_GREY, "{6a696a}[cmd]: /a {9c9a9c}[message]");
    format(string, sizeof string, "{FF0000}[Admin Chat] {FF6347}%s: %s", GetName(playerid), msg);
    SendAdminMessage(COLOR_RED, string);
    return 1;
}
The problem is here
Код:
if(sscanf(params, "u<-'You didn't need this' s[100]", msg))
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)