Jump to content

Some questions


Memory

Recommended Posts

I make "send map name" script, but text incorrectly displayed "User Player thinks that better remove map reportmap"

function send(player,mapName) 
                          map=mapName 
              text="User  "..tostring(getPlayerName(player)).." thinks that better remove map "..map 
              report_id = math.random(111111111,999999999) 
              filename = "maps/"..tostring(getPlayerName(player)).." - "..tostring(report_id)..".xml" 
                     
                    RootNode = xmlCreateFile(tostring(filename),"Maps") 
                    NewNode = xmlCreateChild(RootNode, "Text" ) 
                    xmlNodeSetValue(NewNode,text) 
                    xmlSaveFile(RootNode) 
  
       outputChatBox("The map was succesful reported!",player,255,255,255) 
  
end 
addEvent("send",true) 
addEventHandler("send",getRootElement(),send) 
addCommandHandler("reportmap", send) 

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...