Jump to content

xyzii

Members
  • Posts

    53
  • Joined

  • Last visited

Everything posted by xyzii

  1. So, I'm in middle of making a dx GUI script. Currently working on window, got it done except that I can't figure out the math to position the text on top of the GUI. I need to calculate the middle position (so it works for every size) of a DX Rectangle by using the starting point of the rectangle, and its' length. I guess screen size could be used with this but I can't figure it out. Start X = 901, Width X = 119 Thanks.
  2. Just go to map editor remove it and put on your server, might take some time tho
  3. Loop through all the blips when player joins or the script restarts and insert them into a clientside table with the properties needed. Then loop through that table on client?
  4. xyzii

    Sort table

    Got it fixed. Thanks.
  5. xyzii

    Object problem

    So I'm making a map that includes CJ's house being removed but this black box is still here after removing the house. How can I remove this? Nvm, found the model
  6. xyzii

    Sort table

    Because it only sorts the dates in the right order, not the table that is inside a different column, I NEED TO SORT THE TABLE IN THAT COLUMN or am I understanding something wrong about ORDER BY ASC/DESC?
  7. xyzii

    Sort table

    There is a column in the updates database, the column has a day, month, year number. Second column has a table of the updates. I want to sort the table of the updates, not how the database is sorted. I want that '- Added /updates' to be on the bottom when '- Added locking' should be on the top since that was newly added.
  8. xyzii

    Sort table

    Hey, can you read? "(The meaning is not to sort the rows coming from the database but the table that is in the database row.) "
  9. xyzii

    Sort table

    So I'm making an updates script with a database. It's finished but there's a flaw. The oldest updates come on top. I know I have to use table.sort (The meaning is not to sort the rows coming from the database but the table that is in the database row.)
  10. Vehicle, not vechial.
  11. Hey, as the title says, I'm selling a world object deletor which you can use ingame. It also includes a GUI that you can use to restore the world models and warp to their old locations. Also this script does include a database so that the objects you delete get saved. If you like to use a map editor ingame like me, this saves the hassle of going to MTA's own map editor and getting the ID and LOD from there. I also added an ID tool to the script. You can get more info by contacting me on skype: greedofveeti Image of the GUI:
  12. Yes, use <file src="filename.type"/> in meta
  13. Thanks for your help, got it working!
  14. So I have made an updates script with database. It adds a rows to a gridlist but it adds from oldest to newest. How can I make it so the newly added updates are first?
  15. xyzii

    fuel question

    setElementData or tables for fuel amount, setTimer and getVehicleEngineState for reducing fuel when engine is on. getPedOccupiedVehicle for getting player vehicle.
  16. Wouldn't everyone basically have access to the data in the XML file if they just decode it using teaDecode?
  17. Did it the way you told me to and it's fixed now, thanks 3aGl3!
  18. con:exec("CREATE TABLE IF NOT EXISTS ´"..player.account.name.."´ ('num', 'veh', 'x', 'y', 'z', 'rot', 'bp', 'ups', 'plate', 'hp', 'fuel', 'lock', 'r', 'g', 'b', 'r2', 'g2', 'b2', 'paintjob')")
  19. logged in as '$ ad 12-@dd' dbExec failed; (1) near "ad": syntax error
  20. Hello, I have a problem with my vehicle system and logging systems that are based on account names. So when someone registers an account that has symbols like @, - etc in it, the databases give syntax errors
  21. xyzii

    SQLite Problem

    I got it to work when I used tonumber(num), but thanks for your help anyway, you taught me a bit about SQL that I didn't know
  22. xyzii

    SQLite Problem

    It returns as the number it's supposed to be
×
×
  • Create New...