Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot SA-MP Pawn Scripting [Pawn] HELP! How to Aligned Format String to Center or Justifier Aligner ?

 
  • 0 Vote(s) - 0 Average
Pawn HELP! How to Aligned Format String to Center or Justifier Aligner ?
PutuSuhartawan
Offline

Burgershot Member
Posts: 120
Threads: 52
Joined: Nov 2020
Reputation: 1
Location: Indonesia
#1
2021-05-26, 05:37 PM
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");
           
« Next Oldest | Next Newest »



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Burgershot - Powered by our Community and MyBB Original Theme by Emerald

Linear Mode
Threaded Mode