OnPlayerText
#1

Hi.

I have this function under my OnPlayerText:
pawn Код:
if(PlayerInfo[playerid][VIPLevel] == 1 && PlayerInfo[playerid][Muted] == false && gTeam[playerid] == TEAM_TERRORISTS)
    {
            format(string, sizeof(string), "{F3FF02}[VIP] {F81414}[Terro] %s (%d):   %s",GetName(playerid), playerid, text[1]);
            SendClientMessageToAll(COLOR_WHITE, string);
            return 1;
    }
It works fine, but the first letter is always gone..
Reply
#2

new string[256]; ?
Reply
#3

It isn't giving me errors about string, and it's not string thing.

There's an IP in my signature, go there if you want to see what's the problem.
Type anything in the chat.
Reply
#4

The line might be too long.
Reply
#5

Quote:
Originally Posted by Abagail
Посмотреть сообщение
The line might be too long.
I don't think so..
Reply
#6

Change text[1] to text[0] or just text
Reply
#7

The problem is coming from text[1]; You only send 2 characters .. just use text
Reply
#8

Thank you guys.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)