08.12.2014, 20:19
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.
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; }