/pm bug
#2

OK, umm, i'm making a suggestion here since i am no good at this old style bs, but here is my suggestion, use ZCMD and SSCANF together it comes down to a command this small!

pawn Код:
COMMAND:pm(playerid, params[])
{
    new otherid, message[128];
    if(sscanf(params, "is", otherid, message)) return SendClientMessage(playerid, RED, "Command Syntax: /pm [ID] [Message]");
    GetPlayerName(otherid, pname, sizeof(pname));
    GetPlayerName(playerid, opname, sizeof(opname));
    format(string5, sizeof(string5), "[PM][%s][%d]: %s", opname, playerid, message);
    SendClientMessage(otherid, ORANGE, string5);
    format(string5, sizeof(string5), "[PM Sent][%s][%d]: %s", pname, otherid, message);
    SendClientMessage(playerid, ORANGE, string5);
    return 1;
}
search the forum for these 2 includes if you want simple, fast, small commands like this
Reply


Messages In This Thread
/pm bug - by Amine_Mejrhirrou - 16.02.2011, 21:38
Re: /pm bug - by [WF]Demon - 16.02.2011, 23:15
Re : /pm bug - by Amine_Mejrhirrou - 17.02.2011, 00:02

Forum Jump:


Users browsing this thread: 1 Guest(s)