Ban command problem
#6

You didn't close 2 brackets in the above command.

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;
}
Reply


Messages In This Thread
Ban command problem - by UnlimitedFreeroam - 25.04.2014, 18:48
Re: Ban command problem - by Galletziz - 25.04.2014, 18:53
Re: Ban command problem - by UnlimitedFreeroam - 25.04.2014, 18:59
Re: Ban command problem - by Galletziz - 25.04.2014, 19:00
Re: Ban command problem - by UnlimitedFreeroam - 25.04.2014, 19:03
Re: Ban command problem - by Konstantinos - 25.04.2014, 19:10
Re: Ban command problem - by PrinceKumar - 25.04.2014, 19:11
Re: Ban command problem - by CHAVES1 - 25.04.2014, 19:14
Re: Ban command problem - by PrinceKumar - 25.04.2014, 19:20

Forum Jump:


Users browsing this thread: 1 Guest(s)