SendClientMessage problem
#1

Hello there,

It doesn't happen often that I ask for help but here I need some.

I have set a timer to ban a player after 1 second that he is connected. The ban works perfectly and all. But any client message that I send to the player within the function is not sent. If I try to paste what's inside the function to the place and remove the timer, it still bans but doesn't send the client messages to the player. I also have put some print so it would echo them to the console, but nothing. Only the print shows, not the client messages.

Here is my function:

pawn Код:
public GLine_Entry(playerid)
{
    SetAccountInfo(Player[playerid][Nickname], "banned", "1");
    new str[256];
    format(str, 256, "Closing Link: %s[%s] (User has been permanently banned from *** (%s))", Player[playerid][Nickname], Player[playerid][IP], Player[playerid][BanReason]);
    SendClientMessage(playerid, GREEN, str);
    print(str);
    BanEx(playerid, Player[playerid][BanReason]);
    return 1;
}
Also note that the print works, but the SendClientMessage doesn't. Everything else is fine.

Thank you.
Reply


Messages In This Thread
SendClientMessage problem - by Francis[French] - 29.07.2009, 23:31
Re: SendClientMessage problem - by pagie1111 - 30.07.2009, 05:48
Re: SendClientMessage problem - by Joe Staff - 30.07.2009, 05:52
Re: SendClientMessage problem - by -Sneaky- - 30.07.2009, 06:12
Re: SendClientMessage problem - by yezizhu - 30.07.2009, 06:48
Re: SendClientMessage problem - by Francis[French] - 30.07.2009, 06:54
Re: SendClientMessage problem - by Francis[French] - 30.07.2009, 07:05
Re: SendClientMessage problem - by paytas - 30.07.2009, 07:06
Re: SendClientMessage problem - by yezizhu - 30.07.2009, 07:22
Re: SendClientMessage problem - by Francis[French] - 30.07.2009, 07:23

Forum Jump:


Users browsing this thread: 2 Guest(s)