Jump to content

Syntrax#

Members
  • Posts

    271
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Syntrax#

  1. New problem appeared, Somehow i can't get the data from the mysql server.I've a table in return but somehow i can't get it to splitup the JSON function getConnection() connection = dbConnect( "mysql", "dbname=fghousing;host=localhost", "root", "", "share=1" ) if ( connection ) then -- The connection failed outputDebugString("Connected to the MySQL server") json = toJSON ( {"Headquarter", "Leader", "Prospect"}, true, "none" ) dbExec(connection, "INSERT INTO newtest VALUES (?,?)", json, "Syntrax#") outputDebugString("Inserted Rows") else outputDebugString("Unable to connect to the MySQL server") end end addEventHandler("onResourceStart",resourceRoot,getConnection) function getJSON() connection = dbConnect( "mysql", "dbname=fghousing;host=localhost", "root", "", "share=1" ) if ( connection ) then -- The connection failed local ranksString = "" local result = dbQuery(connection, "SELECT * FROM newtest WHERE username=?", "Syntrax#") -- Execute the query if result then resultdata = dbPoll(result, -1) if resultdata then for i, v in ipairs(resultdata) do value = unpack(v) outputDebugString(fromJSON(value)) end end end end end addCommandHandler("getJSON", getJSON)
  2. @CodyL im working on a gang panel with custom ranks.But in order to generate those ranks with permissions i need to have several ranks within one column.So basically if you run the gangname by select and you try to get Ranks it should output something like this.Leader,Headquarter,Prospect. This is the column value of one single row @pa3ck thank you thats what ive been searching for didnt know toJSON would handle this and just use the fromJSON to get the actual data within a table.Ive managed to fix this already thanks to this.
  3. Hello community, i've a question regarding mysql,is it possible to have a several names within one single column such as OrganisationRanks : Leader,Vice Leader,Headquarter,Prospect. I know how to do it normally but with mysql i can't get it to work.
  4. Hmm is it the method i think you are talking about, the one not that obviously
  5. Do not even try to use this in a working server.Most of the times i saw players getting admin rights just because of that.Be aware for scripts you don't know and what someone gives you
  6. Yep teveel "scripters" die beweren dat ze echt kunnen scripten en 90% van hun server resources bestaan uit edited community scripts of leaked resources.Ik ben er ook wel klaar mee ik vind dat zo servers totaal geen nut meer hebben en misschien lukt het me wel om deze servers zo weining mogelijk spelers te laten hebben met de release van Dynasty network. Eindelijk iemand met dezelfde mening @IIYAMA Ik moet wel zeggen jouw debugscript resource was wel tering goed.Ik gebruik hem tot op de dag vandaag nog steeds.Huge thumbs up voor deze script
  7. Yooo ik ben Younes aka Syntrax# of Serenity.Ik kom uit belgië en ik ben 18 jaar oud.Ik kan je wel helpen met het leren van lua (ben zelf ook niet volledig goed erin maar ik slaag erin om een server te maken vanuit scratch).Ik ben momenteel bezig met mijn grootste project Dynasty Network wat een NEXT GEN RPG server zal zijn.Maar prettig kennis te maken
  8. This code is a real mess, wtf should EventPlayers and WrapedPlayers even mean, since i don't see it being defined. Thanks to this it can be everything or maybe you didn't post the full code.But without that it's not easy to fix this. triggerClientEvent(source, "disable_aircars", source, eventVeh) triggerClientEvent(source, "toggle_aircars", source, eventVeh) triggerClientEvent(source, "disable_aircars", source, eventVeh) triggerClientEvent(source, "toggle_aircars", source, eventVeh) triggerClientEvent always must be like this triggerClientEvent(element, "exportname", playertorecieve, arguments, ...)
  9. Are you going to release this on the community or are you willing to donate it towards an upcoming Server that might need it.If yes can i maybe have it since i'm currently developing Dynasty Network and this would be one of our unique cars. (We lack modellers these days )
  10. Yes i both did that.Nothing works
  11. The only problem i'm having is that i can't apply the texture somehow on the dff itself.Everything is correctly done, the txd has been made, UVW mapping has been created and still i'm getting a white solid DFF object.I've tried switching load sequence but that doesn't change anything at all.I don't have much time to figure out why it's doing this since i'm working my ass off for Dynasty Network
  12. this means i need a 3d model of it, i could do it myself but now i can't due the fact my 3dsmax 2016 is a mess
  13. Hello mta community, I'm searching someone that might help me creating new objects that will be used for pick ups. The following images has to be replaced to a 3d object.I tried it but couldn't get the txd to work Empire Icon : Red + Green house icon from the right side of the image. Here it would be great if anyone could support me with this. Regards, Syntrax# Dynasty Network Developer
  14. Post the whole code, you can't get anything from here what is causing it
  15. Is there anyway to get this map from you since i'm currently developing a new RPG gamemode (From scratch) and this map could really boost up the quality of the server.This map also fits the designs of the scripts due the usage of DX
  16. Finally someone is getting the point
  17. Guess i bought my driving license on the black market then
  18. Are you really calling me a 12 year old kid? And i don't call myself a Full scripter that has an awesome Knowledge about scripting, but managing to create a housing system based on mysql by yourself does proof i do know what i'm doing nor am i calling myself a professional scripter.I'm just an average programmer that is trying to setup something on my own and you throwing :~ that RPG isn't the only gamemode.I'm giving a twist to RPG i'm not creating my own gamemode.I'm mostly focussing on creating the RPG main core and then let people suggest what should come and what not.
  19. Already made something Quite unique, You think i will build my system based on the WSS scripts oh HELL NAH.Everything is from scratch and with a new DX coating Expect something like hte NEXT GEN RPG
  20. Hmm thanks, guess my decision was quite right then Dynasty Network RPG Confirmed
  21. https://wiki.multitheftauto.com/wiki/GetPedBonePosition Use this to get the torso, attach the armor, done.Why using the bone_attach script when mta does have it by itself
  22. Fixed thank you for bring up that
  23. **Bump** RPG gamemode is currently winning (i'm not going for a DM or DD server since those aren't quite popular due the high ammount of available servers) I can consider making a MG server after the RPG project has been done or any other things.But now i will stick to RPG since i'm the only developer in the team (i'm lonely xD) To all RPG servers look out there is a new opponement coming
×
×
  • Create New...