Fury Posted April 17, 2012 Posted April 17, 2012 hello guys, i have made xml stats system. i need to convert it to mysql, i dont know it. so i need to convert it to mysql. who can make it for me for fair price?
Fury Posted April 18, 2012 Author Posted April 18, 2012 hello guys, i have made xml stats system. i need to convert it to mysql, i dont know it. so i need to convert it to mysql. who can make it for me for fair price? up up up
Orange_ Posted April 18, 2012 Posted April 18, 2012 $10 for converting + $20 if you want me to modify the script
Fury Posted April 18, 2012 Author Posted April 18, 2012 (edited) $10 for converting + $20 if you want me to modify the script lol you will just convert two function; function loadPlayerData ( player, datatype ) if ( not player or not isElement( player ) ) then return false end local playerIP = getPlayerSerial ( player ) if ( playerIP ) then local root = xmlLoadFile ("users.xml") if ( root ) then local usersNode = xmlFindChild ( root, "user", 0 ) if ( usersNode ) then local playerRootNode = xmlFindChild ( usersNode, "SERIAL_" .. getPlayerSerial(player), 0 ) if not ( playerRootNode == false ) then local playerData = xmlNodeGetAttribute ( playerRootNode, datatype ) if ( playerData ) then xmlUnloadFile ( root ) return playerData else xmlNodeSetAttribute ( playerRootNode, datatype, 0 ) xmlSaveFile ( root ) xmlUnloadFile ( root ) return 0 end else local playerRootNode = xmlCreateChild ( usersNode, "SERIAL_" .. getPlayerSerial(player) ) xmlNodeSetAttribute ( playerRootNode, datatype, 0 ) xmlSaveFile ( root ) xmlUnloadFile ( root ) return 0 end end end end end function savePlayerData ( player, datatype, newvalue ) if ( not player or not isElement( player ) ) then return false end local playerIP = getPlayerSerial (player) if ( playerIP ) then local root = xmlLoadFile ("users.xml") if ( root ) then local usersNode = xmlFindChild ( root, "user", 0 ) if ( usersNode ) then local playerRootNode = xmlFindChild ( usersNode, "SERIAL_" .. getPlayerSerial(player), 0 ) if not ( playerRootNode == false ) then local newNodeValue = xmlNodeSetAttribute ( playerRootNode, datatype, newvalue ) xmlSaveFile ( root ) xmlUnloadFile ( root ) return newNodeValue else local playerRootNode = xmlCreateChild ( usersNode, "SERIAL_" .. getPlayerSerial(player) ) local newNodeValue = xmlNodeSetAttribute ( playerRootNode, datatype, newvalue ) xmlSaveFile ( root ) xmlUnloadFile ( root ) return newNodeValue end end end end end 10$ is too much for it! Edited April 18, 2012 by Guest
Khtsjefen Posted April 18, 2012 Posted April 18, 2012 Make a script loading the xml values and making mysql functions of them.
Fury Posted April 18, 2012 Author Posted April 18, 2012 Make a script loading the xml values and making mysql functions of them. well thats a another option too. but i dont know anything about mysql. if somebody can make it...
Orange_ Posted April 18, 2012 Posted April 18, 2012 I thought that there's more of it. Then $10 for everything.
Fury Posted April 18, 2012 Author Posted April 18, 2012 I thought that there's more of it. Then $10 for everything. i just need to convert this two function and make mysql connect. i wont give you 10$ for that. maybe 4-5$.
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