undefined symbol: sendchat
#1

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?
Reply
#2

''SendChat'' is not a function is SA:MP 0.3a
Reply
#3

how to do it then?

with the colour of the player added..
Reply
#4

Use this:

Quote:

public OnPlayerText(playerid, text[])
{
SendPlayerMessageToAll(playerid, "sentence");
return 1;
}

Reply
#5

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

Reply
#6

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
Reply
#7

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.
Reply
#8

srry i read it as sendClientMessageToAll

sorry wackox...
Reply
#9

Quote:
Originally Posted by legodude
srry i read it as sendClientMessageToAll

sorry wackox...
NP, i hope it worked! did it?
Reply
#10

yes it workd

gimme some suggestions to format your chats

i have now the options:

[LD]Legodude0) sais:chatchat
[LD]Legodude: sais:chatchat
[LD]Legodude0):chatchat
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)