Unkown Command
#1

Hi

I am busy making a trackveh command so players can track their owned vehicles, but keeps giving me Unknown command in-game and dont understand why.

Код:
CMD:trackveh(playerid, params[])
{
	new carid[10], str[25], model, count = 1, vid, carlist[500];
	for(new i = 0; i < MAX_VEHICLES; i++)
	{
		vid = GetVehicleID(i);
		if(strcmp(vInfo[vid][vOwner], GetNameEx(playerid), true) == 0)
		{
			carid[count] = i;
			model = GetVehicleModel(i);
			format(str, sizeof(str), "%i: %s \n", count, GetVehicleName(model));
			strcat(carlist, str, sizeof(carlist));
			count++;
		}
	}
	if(count == 1)
	{
		SendClientMessage(playerid, COLOR_GREY, "You dont own any vehicles");
		return 1;
	}
	else
	{
		ShowPlayerDialog(playerid, DIALOG_TRACKVEH, DIALOG_STYLE_LIST, "Track vehicle", carlist, "Track", "Cancel");
	} 
	return 1;
}
Reply


Messages In This Thread
Unkown Command - by Blademaster680 - 08.12.2014, 20:19
Re: Unkown Command - by Kaperstone - 08.12.2014, 21:25
Re: Unkown Command - by Blademaster680 - 09.12.2014, 14:22

Forum Jump:


Users browsing this thread: 2 Guest(s)