SA-MP Forums Archive
SendPlayerMessage - Not Defined - 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: SendPlayerMessage - Not Defined (/showthread.php?tid=153045)



SendPlayerMessage - Not Defined - Shadow_ - 06.06.2010

Well im making a Bot system, and OnPlayerText SendPlayerMessage is not defined i have the latest includes but im told that it should be defined with the includes any help?


Re: SendPlayerMessage - Not Defined - Kayaque - 07.06.2010

SendClientMessage ?


Re: SendPlayerMessage - Not Defined - Shadow_ - 07.06.2010

Quote:
Originally Posted by KayaQue
SendClientMessage ?
>.< Ok Im sorry but im not a retard... I was Speaking with J C Torren last night and he said to use

Код:
public OnPlayerText(playerid, text[]) {
if(!strcmp(text, "Ha", true))
	{
  	    SendPlayerMessage(playerid, text);
		SendBotMessage("hahaha");
		return 1;
	}



Re: SendPlayerMessage - Not Defined - MisterTickle - 07.06.2010

SendPlayerMessage was probably a SendClientMessage function with the color already formatted like SystemMsg I believe in the dudB include (or dutils)




Re: SendPlayerMessage - Not Defined - DJDhan - 07.06.2010

Pff it's
Код:
SendPlayerMssageToPlayer(playerid,senderid,const message[])
or
Код:
 SendPlayerMessageToAll(senderid,const message[])



Re: SendPlayerMessage - Not Defined - MisterTickle - 07.06.2010

pfft lol u cool xD


Re: SendPlayerMessage - Not Defined - Shadow_ - 07.06.2010

Quote:
Originally Posted by DJDhan
Pff it's
Код:
SendPlayerMssageToPlayer(playerid,senderid,const message[])
or
Код:
 SendPlayerMessageToAll(senderid,const message[])
Thanks... It works now
Quote:
Originally Posted by KayaQue
SendClientMessage ?
Learn how to script.


Re: SendPlayerMessage - Not Defined - Kyosaur - 07.06.2010

Quote:
Originally Posted by Shadow-
Quote:
Originally Posted by KayaQue
SendClientMessage ?
Learn how to script.
I appreciate the irony in that post.


Re: SendPlayerMessage - Not Defined - Shadow_ - 07.06.2010

No Irony, i just couldn't remember the Callback he came up with some totaly differnt


Re: SendPlayerMessage - Not Defined - Flashy - 07.06.2010

Why you donґt take a random message?

Itґs much easier