Jump to content

NeXuS™

Retired Staff
  • Posts

    1,134
  • Joined

  • Last visited

  • Days Won

    37

Everything posted by NeXuS™

  1. Do you have the server-sided script for this?
  2. You can use getPedWeapon and getWeaponNameFromID to get the weapon name.
  3. NeXuS™

    Interiors

    A loop, and xmlFindChild, xmlLoadFile.
  4. NeXuS™

    help DX box

    This has to be client-sided, as you can only use dx functions on client-side. You'll have to use triggerServerEvent for the setPlayerMoney, as it has to be synchronized. For the panel, Drawing functions. To detect the click, onClientClick and isMouseInPosition.
  5. NeXuS™

    Interiors

    You'll have to use use the XML functions.
  6. @Jayceon you might consider looking into your script.
  7. I'm trying very hard to understand any of this, but it feels impossible. Maybe ask it again, with proper grammar?
  8. Not that loop, the other one, which loops through the vehicles. You asked me to fix the issue about spawning it multiple times. I'm not looking into the code fully, just so I can fix the whole code.
  9. Do you want to restart it after 24 hrs of startup or at 00:00?
  10. Thats the timer calling your function infinitely. So I don't get how that's not a problem... And I don't even get why you need that loop, you don't even use it at all.
  11. And if you want to keep this post in this section, and not have it moved to the Other languages one, I'd start writing in English. Do you have the client-sided file for this resource?
  12. Probably you are low on video memory. Consider replacing your video card.
  13. local fileHandle = fileCreate("mtaserver.txt") function writeRunningResources() if not fileHandle then fileHandle = fileCreate("mtaserver.txt") end for i, k in pairs(getResources()) do if getResourceState(k) == "running" then fileWrite(fileHandle, "<resource src='" .. getResourceName(k) .. "' startup='1' protected='0'/>\n") end end outputChatBox("Got resources in the list.") fileClose(fileHandle) end addCommandHandler("getresources", writeRunningResources) Here.
  14. NeXuS™

    ERROR VF#2 0708000

    Could be a virus. Do you have an anti-virus installed? If you don't, please install one.
  15. Change setTimer(sec, 6000, 0) to setTimer(sec, 6000, 1)
  16. The error is created by MTA. You have to give ACL access to the resource, the same as you had to do to your user. Just replacing "user.username" with "resource.resourcename".
  17. Try setting a password for the root user in your phpMyAdmin. And please change to English language or translate the errors next time. And I already wrote that you should move the dbConnect out of the function, as you don't want to connect to it every single time it is called.
  18. Try installing this runtime and restart your PC after it is done.
  19. createObject, createColSphere/createMarker, onColShapeHit/onMarkerHit, onColShapeLeave/onMarkerLeave and getElementModel for the gate. For the safe zone, you'll have to use createColShapere/createMarker, onColShapeHit/onMarkerHit (I'd use colshapes for this tho), onColShapeLeave/onMarkerLeave, onPlayerDamage and cancelEvent.
  20. If the connection failed, you should get an error. cnn = dbConnect( "mysql", "dbname="..base..";host="..server,user,contra,"share=2") if cnn then outputDebugString("MySQL connected.") else outputDebugString("MySQL couldn't connect.") end function registrar(user,clave,correo) res = dbQuery( cnn,"select count(codCuentas)as nombre from cuentas where usuario='"..user.."';") result = dbPoll( res, -1 ) ... end And I'd consider using dbPoll with a time limit of -1, because it can cause freezes.
  21. Useless code. Would stop after the first object found.
  22. When I get home I'll fix your script. Btw, the code above is full of errors.
×
×
  • Create New...