CMD Wont work
#7

pawn Код:
CMD:aooc(playerid, params[])
{
    if(IsPlayerAdmin(playerid))
    {
        new sendername[MAX_PLAYER_NAME], string[512],message[256];
        GetPlayerName(playerid, sendername, sizeof(sendername));
        if(sscanf(params,"s[256]",message)) return SendClientMessage(playerid, 0xFFFFFFF,"Syntax error.Correct usage: /ooc [text]");
        format(string, sizeof(string), "{00FF00}(( {FFFFFF}%s: %s {00FF00}))", sendername, message);
        SendClientMessageToAll(0xFFFFFFF, string);
    }
    else SendClientMessage(playerid, 0xFF00FF, "[Admin] Sorry you are not a administrator!");
  return 1;
}
Try it like that,you had no string defined for the message you were about to send
Reply


Messages In This Thread
CMD Wont work - by sanplayer - 08.04.2012, 13:38
Re: CMD Wont work - by Boooth - 08.04.2012, 13:46
Re: CMD Wont work - by Cjgogo - 08.04.2012, 13:46
Re: CMD Wont work - by sanplayer - 08.04.2012, 13:49
Re: CMD Wont work - by [ABK]Antonio - 08.04.2012, 13:54
Re: CMD Wont work - by sanplayer - 08.04.2012, 13:57
Re: CMD Wont work - by Cjgogo - 08.04.2012, 14:00
Re: CMD Wont work - by [ABK]Antonio - 08.04.2012, 14:17
Re: CMD Wont work - by Cjgogo - 08.04.2012, 14:19
Re: CMD Wont work - by sanplayer - 08.04.2012, 15:08

Forum Jump:


Users browsing this thread: 1 Guest(s)