2 cmds with reason/text = "я"
#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


Messages In This Thread
2 cmds with reason/text = "я" - by Zmith - 19.05.2015, 10:15
Re: 2 cmds with reason/text = "я" - by X337 - 19.05.2015, 11:47

Forum Jump:


Users browsing this thread: 1 Guest(s)