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=615582)
OnPlayerText -
RuNBoY - 24.08.2016
Hello i have a problem with OnPlayerText
the code:
if(PlayerInfo[playerid][pAdmin] >= 5)
{
new msg[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(msg, sizeof(msg), "{FF0000}[Founder]{00FFFF} %s(%d){FFFFFF}: %s", pName, playerid, text[1]);
SendPlayerMessageToAll(playerid, msg);
return 0;
}
but when i type a message in game the first letter is missing for example: i write "Test" but it in game it turns out as "est"
Re: OnPlayerText -
oMa37 - 24.08.2016
change text[1] to text.
Re: OnPlayerText -
RuNBoY - 24.08.2016
That worked

Thank you!