SA-MP Forums Archive
Unknown 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)
+--- Thread: Unknown Command :/ (/showthread.php?tid=330398)



Unknown Command :/ - BleverCastard - 01.04.2012

Can someone help me with this?
Код:
CMD:gps(playerid, params[])
{
	if(IsPlayerInAnyVehicle(playerid))
	{
	    ShowPlayerDialog(playerid, DIALOG_GPS, DIALOG_STYLE_LIST, "Where do you want to go?", "24/7 Store(LSPD)\nGun Store\nDMV\nLSPD\nLSFMD", "Set GPS", "Cancel");
	}
	else {
		SendClientMessage(playerid,COLOR_RED, "You are not in any vehicle!");
	}
	return 1;
}
It says "unknown command"?


Re: Unknown Command :/ - BleverCastard - 01.04.2012

Anyone?


Re: Unknown Command :/ - AndreT - 01.04.2012

That command is small and simple - everything looks fine.
1. Do you have anything in OnPlayerCommandText?
2. Do other commands work fine?