• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] HELP! How to Aligned Format String to Center or Justifier Aligner ?
#1
Code:
new trunkdataslot1items[1000];

format(trunkdataslot1items, sizeof(trunkdataslot1items), ""COL_RED"SQL ID\t"COL_BLUE"Items\t"COL_GREEN"Amount\t"COL_GREEN"Owner\n");

? ? ? ? ? ? // max item id is 6. but in array show 7 because was counted from zero.

for(new s; s<MAX_TRUNK_SLOTS; s)

? ? ? ? ? ? {

? ? ? ? ? ? format(trunkdataslot1items, sizeof(trunkdataslot1items),

? ? ? ? ? ? " %s "COL_RED"%i \t"COL_BLUE" %s\t "COL_RED"%i %s\t"COL_GREEN" %i\n",

? ? ? ? ? ? trunkdataslot1items, get_vehicle_trunk[closestcar][s][TRUNK_SQL_ID], GetItemInfo( get_vehicle_trunk[closestcar][s][TRUNK_ITEM_TYPE], I_NAME), get_vehicle_trunk[closestcar][s][TRUNK_ITEM_AMOUNT], GetItemInfo( get_vehicle_trunk[closestcar][s][TRUNK_ITEM_TYPE], I_NAME_COUNT), get_vehicle_trunk[closestcar][s][TRUNK_OWNER_ID] );

? ? ? ? ? ? printf("[TRUNK]: Slot:[%i], SQL ID:[%d], Item Type:[%d], Amount:[%d], ", s, get_vehicle_trunk[closestcar][s][TRUNK_SQL_ID], get_vehicle_trunk[closestcar][s][TRUNK_ITEM_TYPE],? get_vehicle_trunk[closestcar][s][TRUNK_ITEM_AMOUNT]);

? ? ? ? ? ? }

ToggleBoot(pInfo[playerid][LastVehicleID], VEHICLE_PARAMS_ON);

? ? ? ? ? ShowPlayerDialog(playerid, DIALOG_OPEN_VEHICLE_TRUNK, DIALOG_STYLE_TABLIST_HEADERS, DialogTitle , trunkdataslot1items, "Take it", "Close");

? ? ? ? ? ?
  Reply


Forum Jump: