Anyone notices errors?
#1

pawn Код:
CMD:pm(playerid, params[])
{
    new string2[256],string1[256],giveid,text;
    if(sscanf(params,"us",giveid,text))
    {
        SendClientMessage(playerid,COLOR_GREY,"Usage: /Pm [ID] [Text]");
    }
    else
    {
        format(string2,sizeof(string2),"[PM] to %s(ID:%d): %s",GetPlayerNameEx(giveid),giveid,text);
        SendClientMessage(playerid,COLOR_GREEN,string2);
        format(string1,sizeof(string1),"[PM] from %s(ID:%d): %s",GetPlayerNameEx(playerid),playerid,text);
        SendClientMessage(giveid,COLOR_GREEN,string1);
    }
    return 1;
}
Reply


Messages In This Thread
Anyone notices errors? - by Audi_Quattrix - 06.12.2013, 17:38
Re: Anyone notices errors? - by Patrick - 06.12.2013, 18:00
Re: Anyone notices errors? - by Audi_Quattrix - 06.12.2013, 18:17
Re: Anyone notices errors? - by Patrick - 06.12.2013, 18:26
Re: Anyone notices errors? - by Audi_Quattrix - 06.12.2013, 18:34
Re: Anyone notices errors? - by tyler12 - 06.12.2013, 18:35
Re: Anyone notices errors? - by Patrick - 06.12.2013, 18:37
Re: Anyone notices errors? - by Audi_Quattrix - 06.12.2013, 18:40

Forum Jump:


Users browsing this thread: 1 Guest(s)