Send 2 Messages?
#1

I am working a little more on my "Clean Script" and I wanted to change some commands around to perform a little faster and more efficiently. I have the following command:

pawn Код:
CMD:set(playerid, params[])
{
    if(PlayerStats[playerid][pAdminLevel] < 3)
        return SendClientMessage(playerid, COLOR_SYSTEM, ACMD_ERROR);
    if(sscanf(params, "uis[15]", id, value, usage))
        return SendClientMessage(playerid, COLOR_WHITE, "SYNTAX: /aset [playerid] [value] [usage]");
    return 1;
}
Is there a way I could send 2 messages when a player has incorrect parameters for sscanf? Sort of like this, but doing it the way I have it above...?

pawn Код:
if(sscanf(params, "uis[15]", id, value, usage))
{
    SendClientMessage(playerid, COLOR_WHITE, "SYNTAX: /aset [playerid] [value] [usage]");
    SendClientMessage(playerid, COLOR_WHITE, "Usage List: skin, score, adminlevel, color");
}
Reply


Messages In This Thread
Send 2 Messages? - by Scenario - 04.11.2010, 21:35
Re: Send 2 Messages? - by Conroy - 04.11.2010, 21:40
Re: Send 2 Messages? - by [L3th4l] - 04.11.2010, 21:42
Re: Send 2 Messages? - by mick88 - 05.11.2010, 03:34
Re: Send 2 Messages? - by Joe Staff - 05.11.2010, 05:54
Re: Send 2 Messages? - by Scenario - 05.11.2010, 13:16
Re: Send 2 Messages? - by Miguel - 05.11.2010, 13:42
Re: Send 2 Messages? - by Scenario - 05.11.2010, 13:59

Forum Jump:


Users browsing this thread: 6 Guest(s)