daKillar2000 Posted September 24, 2010 Share Posted September 24, 2010 heey i want save me house here i want save when buy house local subnode = xmlCreateChild ( file, "house" ) function onHouseBuy ( cost, ID ) cost = tonumber ( cost ) if ( getPlayerMoney ( source ) >= cost ) then local total = totalHouse ( source ) if ( total < 2 ) then local subnode = findHouse ( ID ) if ( subnode ) then local theAccount = getPlayerAccount ( source ) if not ( isGuestAccount ( theAccount ) ) then xmlNodeSetAttribute ( subnode, "owner", getAccountName ( theAccount ) ) triggerClientEvent ( source, "closeGUI", source, "E" ) takePlayerMoney ( source, cost ) [size=6] xmlSaveFile ( file )[/size] t[createPickup ( x, y, z, 3, 1273, 5000 )] = ID - 1 end if ( isGuestAccount ( theAccount ) ) then outputChatBox ( "You must be logged in.", source ) end cost = nil end end if not ( total > 2 ) and ( cost ) then outputChatBox ( "You can't own more than two properties.", source ) end end if ( cost ) and ( getPlayerMoney ( source ) < cost ) then outputChatBox ( "You can't afford it.", source ) end end addEvent ( "onHouseBuy", true ) addEventHandler ( "onHouseBuy", getRootElement ( ), onHouseBuy ) Whats wrong?? Link to comment
CowTurbo Posted September 25, 2010 Share Posted September 25, 2010 comon, stop using "ooso's house system" Link to comment
daKillar2000 Posted September 25, 2010 Author Share Posted September 25, 2010 omg this ronnie's his one O_o Link to comment
Castillo Posted September 25, 2010 Share Posted September 25, 2010 omg this ronnie's his one O_o Correction, ronnie stealed it from ooso and edited the author Link to comment
daKillar2000 Posted September 25, 2010 Author Share Posted September 25, 2010 a ok hehe:P but he dind't save it in house.xml O_o Link to comment
CowTurbo Posted September 25, 2010 Share Posted September 25, 2010 it is! make your own not beging to make it work whit 1.0! Link to comment
daKillar2000 Posted September 25, 2010 Author Share Posted September 25, 2010 lol u have jasper his one O_o so dont talk shit i need help to save it and not shit ... Link to comment
daKillar2000 Posted September 28, 2010 Author Share Posted September 28, 2010 Ok fixed topic can close:D Link to comment
50p Posted September 28, 2010 Share Posted September 28, 2010 Explain what you did before we close the topic. It will help others as well. Link to comment
Castillo Posted September 28, 2010 Share Posted September 28, 2010 Explain what you did before we close the topic. It will help others as well. He didn't anything, i sent him the old code.. i guess he edited something wrong (like ever) Link to comment
daKillar2000 Posted September 28, 2010 Author Share Posted September 28, 2010 pardon it was allready in the script but i was forgot it put it in a folder so u din;'t nothing O_o Link to comment
50p Posted September 29, 2010 Share Posted September 29, 2010 Ok, closing before this gets too far. I'll open it if the author of the topic will ask for it. Link to comment
Recommended Posts