Jump to content

XML problem :$


iFoReX

Recommended Posts

You would need to add an event clientsided, where the GUIEditor thingy is.

Then you need to trigger the client event.

client:

  
addEvent  ( "myEvent", true ) 
function myEvent () 
    -- your code 
end 
addEventHandler ( "myEvent", root, myEvent ) 

server:

  
function e ( ) 
    local money = getPlayerMoney ( source ) 
    if ( money >= 15000 ) then 
        takePlayerMoney ( source, 15000 ) 
        local Skins = xmlCreateFile("skins.xml","Propietarios") 
        local propietarios = xmlCreateChild(Skins, "owners") 
        triggerClientEvent ( "myEvent", source ) 
xmlSaveFile( Skins ) 
    else 
        outputChatBox ( " tu Dinero es ".. money .." y necesitas $15000 para comprarte un skin." ) 
    end 
end 
addEvent ( "qtm", true ) 
addEventHandler ( "qtm", root, e )  

if I have understood it all correct.

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...