2 cmds with reason/text = "я" - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: 2 cmds with reason/text = "я" (
/showthread.php?tid=574659)
2 cmds with reason/text = "я" -
Zmith - 19.05.2015
Код:
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;
}
Re: 2 cmds with reason/text = "я" -
X337 - 19.05.2015
Код:
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))