Jump to content

Wei

Members
  • Posts

    814
  • Joined

  • Last visited

Everything posted by Wei

  1. <acl name="Admin" /> <acl name="Moderator" /> <acl name="RPC" /> <object name="resource.sql" /> <object name="resource.admin" /> <object name="user.mabako" />
  2. You can create database in PHPMyAdmin. You must put sql resource in acl group admin!
  3. Wei

    xml

    same error for both
  4. Wei

    xml

    Hi. I'm making a radio system with ability to add your own radio stations. It will be xml based. So i've made scipt to createfile. But how can I get the table of station 1 and 2 at the same time. function createFileHandler() local xmlFile = xmlCreateFile("stations.xml","stations") local stationInfo = xmlCreateChild(xmlFile, "station") xmlNodeSetAttribute(stationInfo, "name", "Welcome to our serve") xmlNodeSetAttribute(stationInfo, "url", "Is the color") local stationInfo1 = xmlCreateChild(xmlFile, "station") xmlNodeSetAttribute(stationInfo1, "name", "Welcome to our serve") xmlNodeSetAttribute(stationInfo1, "url", "Is the color") xmlSaveFile(xmlFile) end addCommandHandler("createfile", createFileHandler) function createFileHandle1r() local meta = xmlLoadFile ( "stations.xml" ) local info = xmlFindChild ( meta, "station", 0 ) if info then local attrs = xmlNodeGetAttributes ( info ) for name,value in pairs ( attrs ) do outputChatBox( value ) end end xmlUnloadFile ( meta ) end addCommandHandler("ce", createFileHandle1r) And xml. "Welcome to our serve" url="Is the color"> "Welcome to our serve" url="Is the color">
  5. [2012-07-05 22:26:55] ERROR: Unable to connect to mysql: (1049) Unknown database 'digigir' Your database is wrong. Check the name of database [2012-07-05 22:26:55] WARNING: sql\mysql.lua:78: Access denied @ 'shutdown' You must give sql admin rights
  6. event not added server side is the name. And is allready solved...
  7. viewtopic.php?f=108&t=43438 maybe this ?
  8. control state must be string.
  9. Wei

    set vehicle upgrades

    I want to set the upgrades... Like setVehicleUpgrade (wich not exsist)
  10. how can I set vehicle upgrades like: I get all vehicle upgrades with getVehicleUpgrades how can I apply it ?
  11. Wei

    few problems

    karthik If you addEvent and then trigger event with triggerEvent works ? I mean If you do all clientside
  12. Wei

    why

    thanks
  13. Wei

    why

    what's wrong here ?
  14. Wei

    why

    addEvent("phone:callService", true) addEventHandler("phone:callService", getRootElement(), function( cReason, tTeam ) for k, v in ipairs (getElementsByType("player")) do if getTeamName(getPlayerTeam(v)) == tTeam then outputChatBox(getPlayerName(source).." has requested "..tTeam.." reason : "..cReason.." !", v) takePlayerMoney( source, 10000 ) outputChatBox("Request succefuly sent", source) end end end ) Why this works only for team wich the player is in ?
  15. Wei

    Serials

    executeSQLCreateTable( "banList", "players, playerIP TEXT" ) function saveData(source) executeSQLInsert ( "banList", "'"..getPlayerName(source).."', '" .. sourcename .. "'" ) end addCommandHandler("set", saveData) function exeData(source) ip = executeSQLSelect ( "banList", "'"..getPlayerName(source).."', 'playerIP' ") outputChatBox( tostring(ip) ) end addCommandHandler("get", exeData) why it returns table ?
  16. Wei

    Serials

    executeSQLQuery( "INSERT INTO banList playerIP VALUES '".. getPlayerIP ( source ) .."'" ) syntax error. Sorry but it's my first time doing with this.
  17. Wei

    Serials

    executeSQLCreateTable( "banList", "playerIP TEXT" ) function saveData(source) executeSQLQuery( "UPDATE banList SET "..getPlayerIP(source).." WHERE playerIP" ) end addCommandHandler("set", saveData) what am I doing wrong ?
×
×
  • Create New...