Jump to content

pa3ck

Members
  • Posts

    1,141
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by pa3ck

  1. pa3ck

    MySQL problem

    Okay, got it sir, thank you! EDIT: One more question (facepalm) when do I need to use ``? Or I dont need to use it at all?
  2. pa3ck

    MySQL problem

    Ah, okay, thanks a mill! EDIT: Do I need to use dbFree after dbExec?
  3. pa3ck

    MySQL problem

    I changed it to dbExec it works now, but what is the difference between dbExec and dbQuery? Will I need to use dbExec for updating / inserting / getting deatils to / from a table? Thanks a mill.
  4. pa3ck

    MySQL problem

    It returns true but what is the difference between dbQuery and dbExec?
  5. pa3ck

    Question

    Well the easiest would be to use setElementData then retreive it with getElementData. When you give him a weapon, you set the element data... There might be some other ways which are more efficient, but you know... this one is easy.
  6. No one on earth cares. Because your not the one who wrote it. If you wrote a complete RP gamemode and some bastard leaked it, you would care, but you did not, you have nothing to worry about.
  7. pa3ck

    Replace PED.IFP

    Allright, okay, thanks guys
  8. Hi there, is there any way to replace the ped.ifp file? As far as I know, the engineLoadIFP was removed as it was unstable.
  9. pa3ck

    Tooltip

    Thanks man, got it now!
  10. pa3ck

    Tooltip

    Oh, so I have to put it inside the freeroam res. What about a non-freeroam server? Where should I put it?
  11. pa3ck

    Tooltip

    Yes, I test my scripts on freeroam.
  12. pa3ck

    Tooltip

    attept to call global 'getControl' (a nil value) wndMain = guiCreateWindow(300, 300, 200, 200, "", false) setElementData(getControl(wndMain, "kill"), "tooltip-text", "انتحآر", false)
  13. pa3ck

    Tooltip

    Hi, I'm trying to get the tooltip resource working, but no success. Im using this: setElementData(getControl(button, "kill"), "tooltip-text", "انتحآر", false) But it does not work ( I read this in an other post so tried it ) I tried this one too: setElementData(button, "tooltip-text", "انتحآر", false) No success... Anybody know how to use this resource?
  14. The problem is, that the position of the marker changes, so the marker is not exactly at the boot, as it's on the ss.
  15. addEventHandler("onClientMarkerHit", myMarker, function(hitPlayer) -- Or you could use getRootElement() instead of marker, if you want to show the test if he hits any marker. if hitPlayer == getLocalPlayer() then dxDrawText(....) end end)
  16. Thanks for your help, but I have a little problem with it. This is a pic of the problem: http://i.imgur.com/2UreMY8.jpg and my code is: addCommandHandler("matrix", function() function getMatrixLeft(m) return m[1][1], m[1][2], m[1][3] end function getMatrixForward(m) return m[2][1], m[2][2], m[2][3] end function getMatrixUp(m) return m[3][1], m[3][2], m[3][3] end function getMatrixPosition(m) return m[4][1], m[4][2], m[4][3] end local veh = getPedOccupiedVehicle(localPlayer) local mat = getElementMatrix(veh) local ax, ay, az = getElementPosition(veh) vx,vy,vz = getMatrixForward(mat) cp = createMarker(ax, ay, az, "checkpoint", 1) attachElements(cp, veh, vx, vy - 6, vz) end) I dont know if I'm on the right track...
  17. Hi there, I'm trying to script some jobs, the first one is the delivery guy. What I want to do is, that a CP will be created behind the car, at the boot. It would be easy if the rotation of the car would not change, but it obviously changes, what would be the best way to do this?
  18. addCommandHandler("win", function (commandName, thePlayer) if thePlayer == getLocalPlayer() then if Dx_Rec then return end Dx_Rec = {} Dx_Rec.startTime = getTickCount() Dx_Rec.endTime = Dx_Rec.startTime + 2000 Dx_Rec.easingFunction = "InQuad" addEventHandler("onClientRender",getRootElement(), drawStuff) end end)
  19. Change 'OnClientGUIClick' To 'onClientGUIClick' Also, when you are scripting, I advise you to use /debugscript 3 to see the errors ( if there is any )
  20. Thank you so much, the 'engineSetModelLODDistance' works perfectly.
×
×
  • Create New...