problems with some commands
#3

the # one, says i need to return a value, should i replace the return 0, to 1?

my onplayertext

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(Muted[playerid] == 1)
    SendClientMessage(playerid, Red, "You are muted and cannot talk");
    if(text[0] == '#')
    {
        new pid, string[128];
        new help[MAX_PLAYER_NAME];
        GetPlayerName(playerid, help, 24);
        format(string, 128, "( # ) %s(ID: %i)",help, playerid, pid, text);
        MessageToAdmins(AdminColor, string);
        SendClientMessage(playerid, Yellow, "Your message has been sent to admins.");
        return 0;
    }
}
nvm got that fixed...

but there is one problem, i want it to be a command.. like /# or /@ ..
also it doesnt show the reason only name and id ..
Reply


Messages In This Thread
problems with some commands - by xir - 07.01.2011, 10:15
Re: problems with some commands - by Mean - 07.01.2011, 10:27
Re: problems with some commands - by xir - 07.01.2011, 10:47
Re: problems with some commands - by xir - 07.01.2011, 11:12
Re: problems with some commands - by Mean - 07.01.2011, 11:26
Re: problems with some commands - by xir - 07.01.2011, 11:47
Re: problems with some commands - by Mean - 07.01.2011, 12:35
Re: problems with some commands - by xir - 07.01.2011, 13:02

Forum Jump:


Users browsing this thread: 3 Guest(s)