/Answer & /ask problem (Very urgent)
#3

Try this:
pawn Код:
CMD:answer(playerid, params[])
{
    new ID, string[256], string2[256];
    if(pInfo[playerid][Adminlevel] < 1)return SendClientMessage(playerid, 0xFF0000FF, "You are not authorised to use this command");
    if (sscanf(params, "us[256]", ID, string)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /answer [ID] [Answer]");
    if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, COLOR_RED, "ERROR: This player is not connected!");
    if(QuestionAsked[ID] != true) return SendClientMessage(playerid, COLOR_RED, "ERROR: This player has not asked a question!");
    QuestionAsked[ID] = false;
    format(string2, sizeof(string2), "ANSWER: %s", string);
    SendClientMessage(ID, COLOR_GREEN, string2);
    return 1;
}
Reply


Messages In This Thread
/Answer & /ask problem (Very urgent) - by Goldino - 02.02.2013, 08:23
Re: /Answer & /ask problem (Very urgent) - by Goldino - 02.02.2013, 09:03
Re: /Answer & /ask problem (Very urgent) - by Roach_ - 02.02.2013, 09:30
Re: /Answer & /ask problem (Very urgent) - by Goldino - 02.02.2013, 09:46
Re: /Answer & /ask problem (Very urgent) - by Roach_ - 02.02.2013, 09:48
Re: /Answer & /ask problem (Very urgent) - by Goldino - 02.02.2013, 09:51
Re: /Answer & /ask problem (Very urgent) - by Goldino - 02.02.2013, 10:17

Forum Jump:


Users browsing this thread: 3 Guest(s)