Anubhav Posted October 19, 2014 Posted October 19, 2014 local select = executeSQLQuery("SELECT * FROM characters WHERE serial=?", getPlayerSerial(player)) cooldowns.chck[player] = setTimer(function() cooldowns.chck[player]=nil end, 5000, 1) if #select == 0 then setTimer(triggerClientEvent, 5000, 1, player, "character.toggleWindow", player) else Ok so now I did this. And see the output of when I selected. It always return empty, and adds the same serial again! When I selected, what a mess. EC3D9678CC99DF5BD699AECC928920E3 6F25BB2D6702AC1BAC786F79727F2353 EC3D9678CC99DF5BD699AECC928920E3 6F25BB2D6702AC1BAC786F79727F2353 6F25BB2D6702AC1BAC786F79727F2353 EC3D9678CC99DF5BD699AECC928920E3 6F25BB2D6702AC1BAC786F79727F2353 EC3D9678CC99DF5BD699AECC928920E3 EC3D9678CC99DF5BD699AECC928920E3 EC3D9678CC99DF5BD699AECC928920E3 EC3D9678CC99DF5BD699AECC928920E3 EC3D9678CC99DF5BD699AECC928920E3 See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
Anubhav Posted October 19, 2014 Author Posted October 19, 2014 Bump ._. See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
Moderators IIYAMA Posted October 19, 2014 Moderators Posted October 19, 2014 ehm? How are you outputting it? / store it. The function you called select is a lua function, I will not recommend you to use it as overwrite. select (index, ···) If index is a number, returns all arguments after argument number index. Otherwise, index must be the string "#", and select returns the total number of extra arguments it received. Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now