Jump to content

Feche1320

Members
  • Posts

    461
  • Joined

  • Last visited

Everything posted by Feche1320

  1. Hello, is there any way to store a table on inbuilt SQL system? example local table = { name = "me", money = 99999} And save 'table' to SQL.. thanks
  2. Hmm it is working for you.. what happends if you try checkInvalidCharacters("helloworld$%&") ?
  3. Hello all, I have a little but big problem.. since I use in-built server SQL lite I have to check that accounts names and passwords aren't with any 'illegal' character since it could cause big problems aka SQL injection, so I made this little script local invalid_Characters = {"$", ",", "'", "\\", "?", "%%", "~", "#", "&", "@", "-", "/", "`", "^", "{", "}", "+", "*", "%(", "%)", "!"} function checkInvalidCharacters(str) local state = false for i, tmp in ipairs(invalid_Characters) do outputChatBox("Checking " ..tmp) if str:find(tmp) then outputChatBox(tmp.. " found on str " ..str) state = true break end end return state end The big problem is that it returns this I tried str:find(tmp, 1, true) but no success.. looks like for loops can't handle invalid_Characters table? thanks
  4. AMD cpus are sh*t becouse of low IPC, get a Core i5, end.
  5. Nevermind, I was using toggleAllControls on other script.. using toggleControl works great, thanks for the help guys
  6. Nope, still not working.. the player can get out of the car..
  7. Hello there, is there any way to prevent a player to exit the vehicle? I tried with setVehicleLocked and setElementFrozen but none of them works, tried unBindKey but it won't work for GTA SA default ones.. thanks!
  8. Hello, I want to use setElementData and getElementData with a global element, for example getting the element data client side and server side.. so my question is, is it safe to use root element like this? setElementData(root, "whateverhere", true) getElementData(root, "whateverhere") Or is it just a waste of CPU and RAM resources? I could use it with something smaller like an object as element? the only problem using a object is that it won't be server/client side usable.. thanks.
  9. Do I always have to be connected to the internet? I had a compiler program, but now it is useless! I don't like this new thing
  10. He means on how to do that rainbow script thing.
  11. I want to save the WHOLE table on the sqlite db dbExec(db, "CREATE TABLE IF NOT EXISTS recordings (account TEXT, time INTEGER, recording STORAGE)")
  12. I have this: -- Client local x, y, z = getElementPosition(veh) local rx, ry, rz = getElementRotation(veh) if getDistanceBetweenPoints3D(x, y, z, lx, ly, lz) > 2 then table.insert(recordData, {x = x, y = y, z = z, lx = lx, ly = ly, lz = lz} ) lx = x ly = y lz = z end -- Server dbExec("UPDATE recordings SET time = " ..time.. ", recording = " ..data.. " WHERE account = '" ..account.. "'") -- This line gives me the error But I get an error saying that I attempt to conectate a table data value, is there any way? thanks
  13. setElementCollisionsEnabled just makes my car fly.. is there any fix? thanks
  14. Is there a way to improve performance of /refreshall? My server just gets Network trouble, and I have to reconnect..
  15. Okay, what I did was this: downloaded wamp, set up a local MySQL server and with some coding reinsert the tables from the MySQL server to the sqlite database.
  16. So, how can I do that? I was using MySQL on my server, but now I want to use the internal sqlite3, any way? thanks
  17. Where can I download EDF resource?
  18. How do I get the file content and send it to client?
  19. So I should use downloadFile?
×
×
  • Create New...