undefined symbol: sendchat - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: undefined symbol: sendchat (
/showthread.php?tid=155810)
undefined symbol: sendchat -
legodude - 19.06.2010
this is my code:
Код:
#define FILTERSCRIPT
#include <a_samp>
public OnPlayerText(playerid, text[])
{
SendChat("sentence");
return 1;
}
but it gives me this error
Код:
error 017: undefined symbol "SendChat"
how to fix it?
Re: undefined symbol: sendchat - WackoX - 19.06.2010
''SendChat'' is not a function is SA:MP 0.3a
Re: undefined symbol: sendchat -
legodude - 19.06.2010
how to do it then?
with the colour of the player added..
Re: undefined symbol: sendchat - WackoX - 19.06.2010
Use this:
Quote:
public OnPlayerText(playerid, text[])
{
SendPlayerMessageToAll(playerid, "sentence");
return 1;
}
|
Re: undefined symbol: sendchat -
legodude - 19.06.2010
but that wont use the playername...
and the playername needs to be in the colour the player is...
like
Quote:
[LD]Legodude(0):i want this to work
|
Re: undefined symbol: sendchat -
NewTorran - 19.06.2010
Quote:
Originally Posted by legodude
but that wont use the playername...
and the playername needs to be in the colour the player is...
like
Quote:
[LD]Legodude(0):i want this to work
|
|
https://sampwiki.blast.hk/wiki/SendPlayerMessageToAll
Ingame it will show your name in the colour your name is on scoreboard,
That function is the one you want, Try it ingame
Re: undefined symbol: sendchat - WackoX - 19.06.2010
Quote:
Originally Posted by legodude
but that wont use the playername...
and the playername needs to be in the colour the player is...
like
Quote:
[LD]Legodude(0):i want this to work
|
|
Yes it does, please test it first before you make some false conclusions.
Re: undefined symbol: sendchat -
legodude - 20.06.2010
srry i read it as sendClientMessageToAll
sorry wackox...
Re: undefined symbol: sendchat - WackoX - 20.06.2010
Quote:
Originally Posted by legodude
srry i read it as sendClientMessageToAll
sorry wackox... ![Embarrassed](images/smilies/redface.gif)
|
NP, i hope it worked! did it?
Re: undefined symbol: sendchat -
legodude - 20.06.2010
yes it workd
gimme some suggestions to format your chats
i have now the options:
[LD]Legodude
![Sad](images/smilies/sad.gif)
0) sais:chatchat
[LD]Legodude: sais:chatchat
[LD]Legodude
![Sad](images/smilies/sad.gif)
0):chatchat