Not working command
#1

Код:
if (!strcmp("/coords", cmdtext, true))
 	{
 	  new string[128];
 		new	Float:X, Float:Y, Float:Z;
		GetPlayerPos(playerid, X, Y, Z);
		format(string,sizeof(string),"(GPS) Coordinates: %f, %f", Float:X, Float:Y);
		SendClientMessage(playerid, COLOR_LIME, string);
		return 1;
 	}
The message doesn't shows up :/. Can someone help meh?
Reply
#2

Does it say server unknown command ? or nothing at all.

Reaver~
Reply
#3

Nothing at all. o_o
Reply
#4

Try this:

pawn Код:
format(string,sizeof(string),"(GPS) Coordinates: %f, %f", X, Y);
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)