Jump to content

Ben_Sherman

Members
  • Posts

    57
  • Joined

  • Last visited

Everything posted by Ben_Sherman

  1. Yeah the problem is not the files, I'm working on a mod handler to reduce download size, you can select what mods you want to have and no, after that it downloads the file for you. But thank you all for all help!
  2. Thank you very much, Don't get it how I could miss that, well to be honest google sucks when you look for script help within mta.
  3. Yeah now this is a little wrong, I'm asking about downloading file during gameplay and not create or open a text file or some kinda text file. Example I have mods on the server and players get to download everything before they can play. I noticed that there are some servers out there that you can play on during the download progress. Kinda like you starting a resource when your in game and then you download the files while you play. Thanks though.
  4. Yeah that was really helpful, maybe a little more details would help. Thanks though!
  5. Hi there, I've noticed that other servers you can play while downloading files, how is that possible. I mean I know that the downloadFile function is not released yet until v1.4 which I'm waiting for but there must be some other way since there are other servers that you cna play on while downloading the files. Any ideas?
  6. Hi there, I'm still kinda new to lua coding but so far I'm doing good I guess, I'm working on a mod handler which will be toggled by a GUI where you can select mods and then it start downloading the file. I got some issues when loading the data from the database. I've printed every single thing but in the database the value is 0 on all of the mod lines which it doesn't print. Everytime I print it the value just increases starting from 1 and I press again it increases to 2, so it's kinda like it's printing each time I'm pressing the button... Any suggestions here? addEventHandler("LoadSettings", getRootElement(), function (thePlayer) local to = client local toID = getElementData( to, "account:id" ) local query1 = mysql:query("SELECT id FROM modsettings WHERE username='"..toID.."'") if (mysql:num_rows(query1) == 0) then local setsettings = mysql:query("INSERT INTO modsettings (`username`) VALUES ('"..toID.."')") else local query = mysql:query("SELECT mod1 FROM modsettings WHERE username='"..toID.."'") local field = "" ..query.. "" mysql:free_result(query) outputDebugString("Mod Package 1 "..field) ----- HERE------ local query = mysql:query("SELECT mod2 FROM modsettings WHERE username='"..toID.."'") local field = "" ..query.. "" mysql:free_result(query) outputDebugString("Mod Package 2 "..field) ----- HERE------ local query = mysql:query("SELECT mod3 FROM modsettings WHERE username='"..toID.."'") local field = "" ..query.. "" mysql:free_result(query) outputDebugString("Mod Package 3 "..field) ----- HERE------ end end );
  7. Hi there, First of I'd like to start by thanking MTA for this fantastic multiplayer, so let's cut to the chase huh? Well I'm trying to create a ped in a script, but I'm not that use to Lua codes "yet" during this few days I've learned alot about it and so far I haven't had any problems at all until now. So like I said before I'm trying to create a ped for starters, but every time I create the ped it never spawns there. I don't even know if the ped spawns at all. Also I have no clue what Dimension is, I'd guess it's kinda like a virtualworld as SA:MP have, I didn't really understand that. local Johnson = createPed(211, -2034.68, -117.924, 1035.17) setPedRotation(Johnson, 105) setElementDimension(Johnson, 0) setElementInterior(Johnson, 3) function Test(thePed) setElementPosition(thePed, -2034.68, -117.924, 1035.17) setPedRotation(thePed, 105) end setTimer(Test, 3000, 0, Johnson) Any Ideas what it can be? -Sincerely Ben
×
×
  • Create New...