SA-MP Forums Archive
Police Gear - 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: Police Gear (/showthread.php?tid=542481)



Police Gear - MrCallum - 19.10.2014

I made a /ncpd command so police can access their gear, They do it in game and it says its an unknown command.


Код:
CMD:NCPD(playerid, params[])
{
	if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
	{
			ShowPlayerDialog(playerid, DUTYMENU, DIALOG_STYLE_LIST, "NCPD Menu","Duty\nEquipment\nSWAT\nUniform\nUndercover", "Select", "Cancel");

	}
	return 1;
}



Re: Police Gear - Abagail - 19.10.2014

From previous experience, using caps in the command name can sometimes cause this. Change,
pawn Код:
CMD:NCPD
to
pawn Код:
CMD:ncpd