Begginner problem with SendClientMessage
#1

Hello coders.

I am new to pawno as I have been working on c++ console projects so far. I wanted to create a command that would tell the user his location coordinates. Although when I type the command, it does not really work. I have been searching all over ****** to find some tutorial on variables in sendclientmessage but I couldn't find anything. So, please try and help me real quick. Thank you in advance.

Код:
if (strcmp("/location", cmdtext, true, 10) == 0)
	{
		new float: x,y,z;
		GetPlayerPos(playerid, x,y,z);
		new string[50]="%f,%f,%f";
		SendClientMessage(playerid, COLOR_RED, string);
		return 1;
	}
Reply


Messages In This Thread
Begginner problem with SendClientMessage - by Sam5513 - 09.11.2012, 10:35
Re: Begginner problem with SendClientMessage - by mSlat3r - 09.11.2012, 10:36
Re: Begginner problem with SendClientMessage - by doreto - 09.11.2012, 10:38
Re: Begginner problem with SendClientMessage - by Sam5513 - 09.11.2012, 10:43
Re: Begginner problem with SendClientMessage - by Konstantinos - 09.11.2012, 10:46

Forum Jump:


Users browsing this thread: 1 Guest(s)