Not working command - 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: Not working command (
/showthread.php?tid=121340)
Not working command -
Hot - 16.01.2010
Код:
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?
Re: Not working command -
Doppeyy - 16.01.2010
Does it say server unknown command ? or nothing at all.
Reaver~
Re: Not working command -
Hot - 16.01.2010
Nothing at all. o_o
Re: Not working command -
MadeMan - 16.01.2010
Try this:
pawn Код:
format(string,sizeof(string),"(GPS) Coordinates: %f, %f", X, Y);