23.04.2018, 13:55
Код:
for(new t = 1; t < sizeof(TruckInfo); t++) { new szDialog[1024]; strcat(szDialog, "Destinatia\tDistanta\tSkill\tTimp\n"); format(szDialog, sizeof(szDialog), "%s\n%s\t%.2f km\t%d\t%s\n",szDialog, TruckInfo[t][tName], GetPlayerDistanceFromPoint(playerid, TruckInfo[t][tPosX], TruckInfo[t][tPosY], TruckInfo[t][tPosZ]), TruckInfo[t][tSkill], CalculeazaTimp2(TruckInfo[t][tTime])); ShowPlayerDialog(playerid, DIALOG_TRUCKER, DIALOG_STYLE_TABLIST_HEADERS, "Selecteaza destinatia:", szDialog, "Select", "Cancel"); }