Error 10
#3

Quote:
Originally Posted by Mr.1337
Посмотреть сообщение
Try this for the /me command:

pawn Код:
CMD:me(playerid, params[])
{
    if(isnull(params)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /me [action]");
    new string[128];
    if(PlayerInfo[playerid][pMask] == 0) {
        format(string, sizeof(string), "* %s %s", GetPlayerNameEx(playerid), params);
        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    }
    else if (PlayerInfo[playerid][pMask] == 1) {
        format(string, sizeof(string), "* Stranger %s",  params);
        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    }
    return 1;
}
It let me compile but when I use /me in game it says UNKNOWN COMMAND
Reply


Messages In This Thread
Error 10 - by Dare Devil..... - 20.06.2012, 05:56
Re: Error 10 - by Mr.1337 - 20.06.2012, 06:00
Re: Error 10 - by Dare Devil..... - 20.06.2012, 06:16

Forum Jump:


Users browsing this thread: 1 Guest(s)