Jump to content

scratcher911

Members
  • Posts

    105
  • Joined

  • Last visited

Everything posted by scratcher911

  1. scratcher911

    Radar

    Is it possible to change radar position ?
  2. hm. We will go and retype the whole script ? Copy the script here and use tags EDIT: Replace /open with open and /close with close.
  3. thanks
  4. nope. I tryed and returns nil
  5. local group = getElementData(source, "WL") it should return number
  6. scratcher911

    Why nil

    testtable[group]["name"] = name I've made the table like testtable = {} Error: attempt to index field '?' (a nil value)
  7. addEventHandler("onPlayerChat", root, function() cancelEvent() end ) and you can hide it with showChat
  8. Never mind.
  9. how to calculate a COL ?
  10. Thanks.
  11. scratcher911

    Housing

    I have a question. I am doing house system using MySQL. Can I ask how you use it for when player hits marker it spawns him in interrior and way out ? Whats the easiest way.
  12. scratcher911

    Weapons

    addEventHandler("onPlayerLogin", getRootElement(), function() takeAllWeapons(source) end )
  13. scratcher911

    Weapons

    remove it from save system ?
  14. for i = 1, 40 do object = createObject(111, 123, 123, 123) setElementDimension( object, i ) end Maybe this ?
  15. Thank you!
  16. scratcher911

    problem

    dbQuery(database, "UPDATE prsaver SET x='"..x.."',y='"..y.."',z='"..z.."', interior='"..interior.."',health='"..health."', armor='"..armor.."',nameR='"..r.."',nameG='"..g.."',nameB='"..b.."', money='"..money.."', dimension='"..dimension.."', wantedLevel='"..wanted.."',team='"..team.."',weaponID1='"..wID1.."',weaponID2='"..wID2.."',weaponID3='"..wID3.."',weaponID4='"..wID4.."',weaponID5='"..wID5.."',,weaponID6='"..wID6.."',weaponID7='"..wID7.."',weaponID8='"..wID8.."',weaponID9='"..wID9.."',weaponID10='"..wID10.."',weaponID11='"..wID11.."',weaponID12='"..wID12.."',WeaponAmmo1='"..aID1.."',WeaponAmmo2='"..aID2.."',WeaponAmmo3='"..aID3.."',WeaponAmmo4='"..aID4.."',WeaponAmmo5='"..aID5.."',WeaponAmmo6='"..aID6.."',WeaponAmmo7='"..aID7.."',WeaponAmmo8='"..aID8.."',WeaponAmmo9='"..aID9.."',WeaponAmmo10='"..aID10.."',WeaponAmmo11='"..aID11.."',WeaponAmmo12='"..aID12.."' WHERE serial=?", getPlayerSerial(source) ) It shows error: Loading script failed: save\main.lua:66: '' expected near '"', armor='"' but I can not find the problem
  17. if getElementType(hitElement) == "player" or not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then
  18. Doesn't work. Forgot to mention that type for serial is TEXT
  19. Cadu12 Your code doesn't eaven add the row. Solid It doesn't stop adding rows.
  20. Just a sec
  21. doesn't work
  22. function setData(source) local x,y,z = getElementPosition(source) local r, g, b = getPlayerNametagColor( source ) local isData = dbQuery( database, "SELECT * FROM prsaver WHERE serial = "..getPlayerSerial(source).."" ) local result = dbPoll( isData, 0 ) if not result then local qh = dbQuery -- Long code here dbFree( qh ) end end problem is that it makes pass the result even if the serial is not in.
  23. dbConnect ? I think it's a bit more easyer right ? EDIT: It's easier.. I've already make it. Thanks Solid
  24. Nope. Same
×
×
  • Create New...