SA-MP Forums Archive
OnPlayerText - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: OnPlayerText (/showthread.php?tid=501112)



OnPlayerText - MythicalMarauder - 16.03.2014

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..


Re: OnPlayerText - Lajko1 - 16.03.2014

new string[256]; ?


Re: OnPlayerText - MythicalMarauder - 16.03.2014

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.


Re: OnPlayerText - Abagail - 16.03.2014

The line might be too long.


Re: OnPlayerText - MythicalMarauder - 16.03.2014

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


AW: OnPlayerText - Nero_3D - 16.03.2014

Change text[1] to text[0] or just text


Re : OnPlayerText - Golimad - 16.03.2014

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


Re: OnPlayerText - MythicalMarauder - 16.03.2014

Thank you guys.