25.04.2014, 19:10
You didn't close 2 brackets in the above command.
You don't need sscanf for that, it can be:
You don't need sscanf for that, it can be:
pawn Код:
YCMD:ask(playerid, params[], help)
{
#pragma unused help
if (isnull(params)) return SCM(playerid, COLOR_RED, "Usage: /ask [text]");
new string[144];
format(string, sizeof (string), ""COL_RED"[Question] Player"COL_WHITE"%s |"COL_RED"Text: "COL_WHITE"%s ", GetName(playerid), params);
foreach(Player, i) if (P_Data[i][pAdmin] > 0) SCM(i, -1, string);
return 1;
}